Skip to content

Commit 0615083

Browse files
committed
fix visibility control
1 parent 1cdefa4 commit 0615083

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rclcpp_lifecycle/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ macro(targets)
3131
"rcl_lifecycle${target_suffix}"
3232
"lifecycle_msgs")
3333

34+
# Causes the visibility macros to use dllexport rather than dllimport,
35+
# which is appropriate when building the dll but not consuming it.
36+
target_compile_definitions(rclcpp_lifecycle${target_suffix} PRIVATE "RCLCPP_LIFECYCLE_BUILDING_DLL")
37+
3438
install(TARGETS
3539
rclcpp_lifecycle${target_suffix}
3640
ARCHIVE DESTINATION lib

0 commit comments

Comments
 (0)