Skip to content

Commit

Permalink
Control shared/static linking via BUILD_SHARED_LIBS and ament_cmake_ros
Browse files Browse the repository at this point in the history
  • Loading branch information
esteve committed Mar 22, 2017
1 parent d353b3c commit 6577f9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rmw_fastrtps_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra -Wpedantic")
endif()

find_package(ament_cmake REQUIRED)
find_package(ament_cmake_ros REQUIRED)

find_package(fastrtps_cmake_module REQUIRED)
find_package(fastcdr REQUIRED CONFIG)
Expand All @@ -40,7 +40,7 @@ ament_export_dependencies(rosidl_typesupport_introspection_cpp)

include_directories(include)

add_library(rmw_fastrtps_cpp SHARED
add_library(rmw_fastrtps_cpp
src/functions.cpp
)
target_link_libraries(rmw_fastrtps_cpp
Expand Down
2 changes: 1 addition & 1 deletion rmw_fastrtps_cpp/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<maintainer email="[email protected]">Ricardo González</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_ros</buildtool_depend>
<buildtool_depend>fastrtps_cmake_module</buildtool_depend>

<buildtool_export_depend>ament_cmake</buildtool_export_depend>
Expand Down

0 comments on commit 6577f9e

Please sign in to comment.