Skip to content

Commit 8b92e4a

Browse files
authored
Fix symlink install of versioned libs on macOS (#558)
Follow-up to 0fd5578 Signed-off-by: Scott K Logan <[email protected]>
1 parent 032dc51 commit 8b92e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ament_cmake_core/cmake/symlink_install/ament_cmake_symlink_install.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function(ament_cmake_symlink_install_targets)
240240
get_filename_component(fileext "${file}" EXT)
241241
if(fileext STREQUAL ".a" OR fileext STREQUAL ".lib")
242242
set(destination "${ARG_ARCHIVE_DESTINATION}")
243-
elseif(fileext STREQUAL ".dylib" OR fileext MATCHES "\\.so(\\.[0-9]+)?(\\.[0-9]+)?(\\.[0-9]+)?$")
243+
elseif(fileext MATCHES "(\\.[0-9]+)?(\\.[0-9]+)?(\\.[0-9]+)?\\.dylib$" OR fileext MATCHES "\\.so(\\.[0-9]+)?(\\.[0-9]+)?(\\.[0-9]+)?$")
244244
set(destination "${ARG_LIBRARY_DESTINATION}")
245245
elseif(fileext STREQUAL "" OR fileext STREQUAL ".dll" OR fileext STREQUAL ".exe")
246246
set(destination "${ARG_RUNTIME_DESTINATION}")

0 commit comments

Comments
 (0)