Skip to content

Commit

Permalink
Fix symlink install versioned shared library (ros#1197)
Browse files Browse the repository at this point in the history
* Fix symlink install versioned shared library

This is a catkin port of the same change to ament_cmake.

Co-authored-by: JafarAbdi <[email protected]>

* fixup! Fix symlink install versioned shared library

---------

Co-authored-by: JafarAbdi <[email protected]>
  • Loading branch information
cottsay and JafarAbdi authored Sep 13, 2024
1 parent ff31d45 commit 24e9b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/symlink_install/catkin_symlink_install.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function(catkin_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 STREQUAL ".so")
elseif(fileext STREQUAL ".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 24e9b0a

Please sign in to comment.