Skip to content

Commit

Permalink
use OUTPUT_NAME of exported library if set (#239)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
dirk-thomas authored Apr 10, 2020
1 parent 933e283 commit 8dc9237
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ macro(ament_export_libraries)
# they will be resolved via find_library()
# relative to the CMAKE_INSTALL_PREFIX
# when find_package() is invoked from a downstream package
list(APPEND _AMENT_EXPORT_LIBRARIES ${_cfg} "${_lib}")
get_target_property(_output_name ${_lib} OUTPUT_NAME)
if(_output_name)
list(APPEND _AMENT_EXPORT_LIBRARIES ${_cfg} "${_output_name}")
else()
list(APPEND _AMENT_EXPORT_LIBRARIES ${_cfg} "${_lib}")
endif()
endif()
else()
# keep plain library names as-is
Expand Down

0 comments on commit 8dc9237

Please sign in to comment.