Skip to content

Commit

Permalink
Change glog to required.
Browse files Browse the repository at this point in the history
  • Loading branch information
helenol committed Feb 10, 2020
1 parent 3e5c60d commit 76c8982
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ include(cmake/glog-catkin-extras.cmake.in)
set(USE_SYSTEM_GLOG "AUTO" CACHE INTERNAL "Whether to use the system version of Glog.")

# Check if the version is suitable, otherwise force downloading the newer one.
if(USE_SYSTEM_GLOG STREQUAL "AUTO")
if(USE_SYSTEM_GLOG STREQUAL "AUTO" OR USE_SYSTEM_GLOG STREQUAL "ON")
find_package(Glog QUIET)
if(GLOG_FOUND)
set(USE_SYSTEM_GLOG "ON")
Expand Down Expand Up @@ -56,6 +56,7 @@ if(USE_SYSTEM_GLOG STREQUAL "OFF")
LIBRARIES glog)
else()
message(STATUS "Using system Glog.")
find_package(Glog REQUIRED)
cs_install()
cs_export(INCLUDE_DIRS ${GLOG_INCLUDE_DIRS}
LIBRARIES ${GLOG_LIBRARIES})
Expand Down

0 comments on commit 76c8982

Please sign in to comment.