From 22a344b9469e7aa2c52ceed1a045abd0c8250614 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Thu, 22 Dec 2016 15:02:28 +0100 Subject: [PATCH] More linking dependencies fixing --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f35a139..39a6178 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,8 +116,8 @@ target_link_libraries(cartographer PUBLIC ${Boost_LIBRARIES}) target_link_libraries(cartographer PUBLIC webp) +# We expect find_package(Ceres) to have located these for us. target_link_libraries(cartographer PUBLIC glog) - target_link_libraries(cartographer PUBLIC gflags) target_include_directories(cartographer SYSTEM PUBLIC @@ -199,6 +199,7 @@ list(APPEND CARTOGRAPHER_LIBRARIES "${LUA_LIBRARIES}") list(APPEND CARTOGRAPHER_LIBRARIES "${PROTOBUF_LIBRARIES}") list(APPEND CARTOGRAPHER_LIBRARIES "${CAIRO_LIBRARIES}") list(APPEND CARTOGRAPHER_LIBRARIES "webp") +list(APPEND CARTOGRAPHER_LIBRARIES "glog") CONFIGURE_PACKAGE_CONFIG_FILE( cartographer-config.cmake.in