File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ set(CLASS_LOADER_IGNORE_AMENT FALSE CACHE BOOL
14
14
"Do not use ament when building this package." )
15
15
if (NOT CLASS_LOADER_IGNORE_AMENT)
16
16
find_package (ament_cmake)
17
+ find_package (ament_cmake_ros REQUIRED)
18
+ set (explicit_library_type "" )
19
+ else ()
20
+ set (explicit_library_type "SHARED" )
17
21
endif ()
18
22
19
23
find_package (console_bridge_vendor REQUIRED) # Provides console_bridge 0.4.0 on platforms without it.
@@ -33,7 +37,7 @@ set(${PROJECT_NAME}_SRCS
33
37
src/meta_object.cpp
34
38
src/multi_library_class_loader.cpp
35
39
)
36
- add_library (${PROJECT_NAME} SHARED ${${PROJECT_NAME} _SRCS})
40
+ add_library (${PROJECT_NAME} ${explicit_library_type} ${${PROJECT_NAME} _SRCS})
37
41
target_include_directories (${PROJECT_NAME} PUBLIC
38
42
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>"
39
43
"$<INSTALL_INTERFACE:include>" )
Original file line number Diff line number Diff line change 17
17
<build_depend >libconsole-bridge-dev</build_depend >
18
18
19
19
<buildtool_depend >ament_cmake</buildtool_depend >
20
+ <buildtool_depend >ament_cmake_ros</buildtool_depend >
20
21
21
22
<exec_depend >console_bridge_vendor</exec_depend >
22
23
<exec_depend >libconsole-bridge-dev</exec_depend >
You can’t perform that action at this time.
0 commit comments