Skip to content

Commit

Permalink
[cmake] mc_rbdyn_urdf needs to include boost directories
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Jun 3, 2019
1 parent 3e7ef7b commit 7ac0a1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
add_project_dependency(RBDyn REQUIRED)
find_package(TinyXML2 REQUIRED)

# Note: technically we don't need system but it is likely to be here and
# CMake <= 3.5.0 needs at least one component to define Boost::boost
add_project_dependency(Boost REQUIRED COMPONENTS system)

# For MSVC, set local environment variable to enable finding the built dll
# of the main library when launching ctest with RUN_TESTS
if(MSVC)
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(HEADERS

add_library(mc_rbdyn_urdf SHARED ${SOURCES} ${HEADERS})
target_include_directories(mc_rbdyn_urdf PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include> $<INSTALL_INTERFACE:include>)
target_link_libraries(mc_rbdyn_urdf PUBLIC RBDyn::RBDyn PRIVATE TinyXML2::TinyXML2)
target_link_libraries(mc_rbdyn_urdf PUBLIC RBDyn::RBDyn Boost::boost PRIVATE TinyXML2::TinyXML2)
set_target_properties(mc_rbdyn_urdf PROPERTIES SOVERSION 1 VERSION 1.1.0)
set_target_properties(mc_rbdyn_urdf PROPERTIES CXX_STANDARD 11)
target_compile_definitions(mc_rbdyn_urdf PRIVATE "-DMCRBDYNURDF_BUILDING")
Expand Down

0 comments on commit 7ac0a1e

Please sign in to comment.