Skip to content

Commit

Permalink
Do not enforce building as a shared library, respect BUILD_SHARED_LIBS
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerj committed Oct 1, 2024
1 parent 5576c02 commit d152af9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ custom_executable(simple_bridge "src/simple_bridge.cpp"
ROS1_DEPENDENCIES
TARGET_DEPENDENCIES "std_msgs")

add_library(${PROJECT_NAME} SHARED
if(NOT DEFINED BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS ON)
endif()
add_library(${PROJECT_NAME}
"src/builtin_interfaces_factories.cpp"
"src/convert_builtin_interfaces.cpp"
"src/bridge.cpp"
Expand Down

0 comments on commit d152af9

Please sign in to comment.