diff --git a/rmw_implementation/CMakeLists.txt b/rmw_implementation/CMakeLists.txt index 2c61e0c0..6bc014e9 100644 --- a/rmw_implementation/CMakeLists.txt +++ b/rmw_implementation/CMakeLists.txt @@ -53,14 +53,14 @@ else() find_package(Poco REQUIRED COMPONENTS Foundation) message(STATUS "Runtime selection of RMW enabled") - + + link_directories(${Poco_LIBRARY_DIR}) add_library(${PROJECT_NAME} SHARED src/functions.cpp) ament_target_dependencies(${PROJECT_NAME} "Poco" "rmw") - target_link_libraries(${PROJECT_NAME} Poco::Foundation) target_compile_definitions(${PROJECT_NAME} PUBLIC "DEFAULT_RMW_IMPLEMENTATION=${RMW_IMPLEMENTATION}") configure_rmw_library(${PROJECT_NAME}) diff --git a/rmw_implementation/rmw_implementation-extras.cmake.in b/rmw_implementation/rmw_implementation-extras.cmake.in index 4fca3da4..fc8493b2 100644 --- a/rmw_implementation/rmw_implementation-extras.cmake.in +++ b/rmw_implementation/rmw_implementation-extras.cmake.in @@ -36,8 +36,7 @@ if(@RMW_IMPLEMENTATION_DISABLE_RUNTIME_SELECTION@) "The RMW implementation has been specified as " "'${requested_rmw_implementation}' via " "${requested_rmw_implementation_from}, but rmw_implementation was built " - "only with support for '@RMW_IMPLEMENTATION@'." - ) + "only with support for '@RMW_IMPLEMENTATION@'.") endif() find_package("@RMW_IMPLEMENTATION@" REQUIRED) @@ -57,8 +56,7 @@ else() "The RMW implementation has been specified as " "'${requested_rmw_implementation}' via " "${requested_rmw_implementation_from}, but it is not available at this " - "time.\n Make sure it does not expect a typesupport or other build " - "dependencies.\n\n Currently available middlewares: " + "time.\n\nCurrently available middlewares:\n" "'${available_rmw_implementations}'") endif()