Skip to content

Commit

Permalink
fixed lib extensions for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
skucheria committed Jul 18, 2019
1 parent f2c4594 commit 9aa2a09
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ macro(rclcpp_components_register_node target)
set(component ${ARGS_PLUGIN})
set(node ${ARGS_EXECUTABLE})
_rclcpp_components_register_package_hook()
set(_path "lib")
if(WIN32)
set(_path "bin")
set(LIBRARY_NAME ${target}.dll)
elseif(APPLE)
set(LIBRARY_NAME lib${target}.dylib)
else()
set(_path "lib")
set(LIBRARY_NAME lib${target}.so)
endif()
set(_RCLCPP_COMPONENTS__NODES
Expand Down

0 comments on commit 9aa2a09

Please sign in to comment.