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.
master
Juraj Oršulić 2017-06-23 16:46:16 +02:00 committed by Holger Rapp
parent 563662973c
commit 08ff3f9c42
1 changed files with 1 additions and 0 deletions

View File

@ -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()