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
parent
563662973c
commit
08ff3f9c42
|
@ -37,6 +37,7 @@ set(PACKAGE_DEPENDENCIES
|
||||||
|
|
||||||
find_package(cartographer REQUIRED)
|
find_package(cartographer REQUIRED)
|
||||||
include("${CARTOGRAPHER_CMAKE_DIR}/functions.cmake")
|
include("${CARTOGRAPHER_CMAKE_DIR}/functions.cmake")
|
||||||
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
google_initialize_cartographer_project()
|
google_initialize_cartographer_project()
|
||||||
google_enable_testing()
|
google_enable_testing()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue