mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-27 01:14:51 +00:00
Finding Gflags and Glog if they are installed with Macports. Fixing
problems finding Gperftools libraries
This commit is contained in:
parent
872ed26527
commit
53b227a0c1
@ -416,10 +416,10 @@ endif(NOT GLOG_FOUND OR LOCAL_GFLAGS)
|
|||||||
set(GCC_GPERFTOOLS_FLAGS "")
|
set(GCC_GPERFTOOLS_FLAGS "")
|
||||||
find_package(Gperftools)
|
find_package(Gperftools)
|
||||||
if ( NOT GPERFTOOLS_FOUND )
|
if ( NOT GPERFTOOLS_FOUND )
|
||||||
message(STATUS "The optional library GPerftools has not been found.")
|
message(STATUS "The optional library GPerftools has not been found.")
|
||||||
else( NOT GPERFTOOLS_FOUND )
|
else( NOT GPERFTOOLS_FOUND )
|
||||||
message (STATUS "GPerftools library found." )
|
message (STATUS "GPerftools library found." )
|
||||||
link_libraries(profiler tcmalloc)
|
link_libraries(${GPERFTOOLS_PROFILER} ${GPERFTOOLS_TCMALLOC})
|
||||||
endif( NOT GPERFTOOLS_FOUND )
|
endif( NOT GPERFTOOLS_FOUND )
|
||||||
list(APPEND CMAKE_CXX_FLAGS ${GCC_GPERFTOOLS_FLAGS})
|
list(APPEND CMAKE_CXX_FLAGS ${GCC_GPERFTOOLS_FLAGS})
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ else (WIN32)
|
|||||||
FIND_PATH(GFlags_ROOT_DIR
|
FIND_PATH(GFlags_ROOT_DIR
|
||||||
libgflags.dylib
|
libgflags.dylib
|
||||||
HINTS
|
HINTS
|
||||||
|
/opt/local/lib
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
)
|
)
|
||||||
endif (WIN32)
|
endif (WIN32)
|
||||||
@ -45,6 +46,7 @@ IF(GFlags_ROOT_DIR)
|
|||||||
FIND_PATH(GFlags_INCLUDE_DIRS
|
FIND_PATH(GFlags_INCLUDE_DIRS
|
||||||
gflags/gflags.h
|
gflags/gflags.h
|
||||||
HINTS
|
HINTS
|
||||||
|
/opt/local/include
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
${GFlags_ROOT_DIR}/src
|
${GFlags_ROOT_DIR}/src
|
||||||
)
|
)
|
||||||
|
@ -23,12 +23,9 @@ endif(MSVC)
|
|||||||
|
|
||||||
macro(_FIND_GLOG_LIBRARIES _var)
|
macro(_FIND_GLOG_LIBRARIES _var)
|
||||||
find_library(${_var}
|
find_library(${_var}
|
||||||
NAMES
|
NAMES ${ARGN}
|
||||||
${ARGN}
|
PATHS ${LIB_PATHS} /opt/local/lib
|
||||||
PATHS
|
PATH_SUFFIXES lib
|
||||||
${LIB_PATHS}
|
|
||||||
PATH_SUFFIXES
|
|
||||||
lib
|
|
||||||
)
|
)
|
||||||
mark_as_advanced(${_var})
|
mark_as_advanced(${_var})
|
||||||
endmacro()
|
endmacro()
|
||||||
@ -53,6 +50,7 @@ else(MSVC)
|
|||||||
find_path(GLOG_INCLUDE_DIR NAMES raw_logging.h
|
find_path(GLOG_INCLUDE_DIR NAMES raw_logging.h
|
||||||
PATHS
|
PATHS
|
||||||
${GLOG_ROOT}/include/glog
|
${GLOG_ROOT}/include/glog
|
||||||
|
/opt/local/include/glog # default location in Macports
|
||||||
)
|
)
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user