diff --git a/ament_cmake_core/cmake/core/all.cmake b/ament_cmake_core/cmake/core/all.cmake index 78382710..1023f3b3 100644 --- a/ament_cmake_core/cmake/core/all.cmake +++ b/ament_cmake_core/cmake/core/all.cmake @@ -26,6 +26,7 @@ endif() # set RPATH to ON for OS X if(APPLE) set(CMAKE_MACOSX_RPATH ON) + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON) endif() # the following operations must be performed inside a project context