Skip to content

Commit

Permalink
Fix symlink install of versioned libs on macOS (#558)
Browse files Browse the repository at this point in the history
Follow-up to 0fd5578

Signed-off-by: Scott K Logan <logans@cottsay.net>
  • Loading branch information
cottsay authored Nov 14, 2024
1 parent 032dc51 commit 8b92e4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function(ament_cmake_symlink_install_targets)
get_filename_component(fileext "${file}" EXT)
if(fileext STREQUAL ".a" OR fileext STREQUAL ".lib")
set(destination "${ARG_ARCHIVE_DESTINATION}")
elseif(fileext STREQUAL ".dylib" OR fileext MATCHES "\\.so(\\.[0-9]+)?(\\.[0-9]+)?(\\.[0-9]+)?$")
elseif(fileext MATCHES "(\\.[0-9]+)?(\\.[0-9]+)?(\\.[0-9]+)?\\.dylib$" OR fileext MATCHES "\\.so(\\.[0-9]+)?(\\.[0-9]+)?(\\.[0-9]+)?$")
set(destination "${ARG_LIBRARY_DESTINATION}")
elseif(fileext STREQUAL "" OR fileext STREQUAL ".dll" OR fileext STREQUAL ".exe")
set(destination "${ARG_RUNTIME_DESTINATION}")
Expand Down

0 comments on commit 8b92e4a

Please sign in to comment.