mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-02-09 15:40:09 +00:00
Fix building if Gflags was found but Glog was not
This commit is contained in:
parent
f0ba209d88
commit
ec435ab119
@ -1354,7 +1354,10 @@ endif()
|
|||||||
################################################################################
|
################################################################################
|
||||||
set(LOCAL_GFLAGS FALSE)
|
set(LOCAL_GFLAGS FALSE)
|
||||||
if(NOT ENABLE_OWN_GLOG)
|
if(NOT ENABLE_OWN_GLOG)
|
||||||
|
find_package(GLOG)
|
||||||
|
if(GLOG_FOUND)
|
||||||
find_package(GFLAGS)
|
find_package(GFLAGS)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
set_package_properties(GFLAGS PROPERTIES
|
set_package_properties(GFLAGS PROPERTIES
|
||||||
PURPOSE "Used for commandline flags management."
|
PURPOSE "Used for commandline flags management."
|
||||||
@ -1495,9 +1498,6 @@ endif()
|
|||||||
################################################################################
|
################################################################################
|
||||||
# glog - https://github.com/google/glog
|
# glog - https://github.com/google/glog
|
||||||
################################################################################
|
################################################################################
|
||||||
if(NOT ENABLE_OWN_GLOG AND NOT ${LOCAL_GFLAGS})
|
|
||||||
find_package(GLOG)
|
|
||||||
endif()
|
|
||||||
set_package_properties(GLOG PROPERTIES
|
set_package_properties(GLOG PROPERTIES
|
||||||
PURPOSE "Used for runtime internal logging."
|
PURPOSE "Used for runtime internal logging."
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user