We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c67e43a commit a081c48Copy full SHA for a081c48
1 file changed
rclpy/CMakeLists.txt
@@ -126,10 +126,17 @@ add_library(rclpy_common SHARED
126
)
127
target_link_libraries(rclpy_common PUBLIC
128
pybind11::pybind11
129
- ${PYTHON_LIBRARIES}
130
rcl::rcl
131
rmw::rmw
132
+
133
+if(NOT APPLE)
134
+ target_link_libraries(rclpy_common ${PYTHON_LIBRARIES})
135
+else()
136
+ set_target_properties(rclpy_common PROPERTIES
137
+ LINK_FLAGS "-undefined dynamic_lookup")
138
+endif()
139
140
target_include_directories(rclpy_common PUBLIC
141
src/rclpy_common/include
142
0 commit comments