From 08ff3f9c423fc44855a221638e082219bb3f9e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Or=C5=A1uli=C4=87?= Date: Fri, 23 Jun 2017 16:46:16 +0200 Subject: [PATCH] Build cartographer_ros as a static library (#393) This was implicitly set on <= Ubuntu 16.04 when find_package()-ing GMock in google_enable_testing(). On 17.04, this doesn't happen, and Catkin builds a shared library by default. cartographer_ros currently can't be built as a shared library due to a linking problem (which is a separate issue - #392). This makes building on 17.04 consistent with older versions of Ubuntu. --- cartographer_ros/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cartographer_ros/CMakeLists.txt b/cartographer_ros/CMakeLists.txt index f7a4cd9..d7ff0b9 100644 --- a/cartographer_ros/CMakeLists.txt +++ b/cartographer_ros/CMakeLists.txt @@ -37,6 +37,7 @@ set(PACKAGE_DEPENDENCIES find_package(cartographer REQUIRED) include("${CARTOGRAPHER_CMAKE_DIR}/functions.cmake") +set(BUILD_SHARED_LIBS OFF) google_initialize_cartographer_project() google_enable_testing()