mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 04:00:34 +00:00
Fix GFlags_ROOT_DIR variable
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@375 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
parent
5b13435332
commit
4d07911bac
@ -177,6 +177,7 @@ endif()
|
||||
# gflags - http://code.google.com/p/gflags/
|
||||
################################################################################
|
||||
set(LOCAL_GFLAGS false CACHE STRING "GFlags installed on the system")
|
||||
set(GFlags_ROOT_DIR false)
|
||||
find_package(GFlags)
|
||||
|
||||
if (NOT GFlags_FOUND)
|
||||
@ -207,7 +208,7 @@ if (NOT GFlags_FOUND)
|
||||
set(GFlags_LIBS
|
||||
${CMAKE_CURRENT_BINARY_DIR}/gflags-${gflags_RELEASE}/.libs/${CMAKE_FIND_LIBRARY_PREFIXES}gflags.a
|
||||
)
|
||||
set(GFlags_ROOT_DIR ${CMAKE_CURRENT_BINARY_DIR}/gflags-${gflags_RELEASE})
|
||||
set(GFlags_ROOT_DIR ${CMAKE_CURRENT_BINARY_DIR}/gflags-${gflags_RELEASE} CACHE PATH "GFlags root folder" FORCE)
|
||||
file(GLOB GFlags_SHARED_LIBS "${CMAKE_CURRENT_BINARY_DIR}/gflags-${gflags_RELEASE}/.libs/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_SHARED_LIBRARY_SUFFIX}*")
|
||||
set(GFlags_LIBRARY gflags-${gflags_RELEASE})
|
||||
set(gflags gflags-${gflags_RELEASE})
|
||||
|
Loading…
Reference in New Issue
Block a user