diff --git a/rclcpp/CMakeLists.txt b/rclcpp/CMakeLists.txt index de8e289..57ddc4a 100644 --- a/rclcpp/CMakeLists.txt +++ b/rclcpp/CMakeLists.txt @@ -43,7 +43,7 @@ set(${PROJECT_NAME}_SRCS ) macro(target) - if(NOT "${target_suffix} " STREQUAL " ") + if(NOT target_suffix STREQUAL "") get_rcl_information("${rmw_implementation}" "rcl${target_suffix}") endif() add_library(${PROJECT_NAME}${target_suffix} SHARED diff --git a/rclcpp/cmake/get_rclcpp_information.cmake b/rclcpp/cmake/get_rclcpp_information.cmake index fff5371..41e69d1 100644 --- a/rclcpp/cmake/get_rclcpp_information.cmake +++ b/rclcpp/cmake/get_rclcpp_information.cmake @@ -29,7 +29,7 @@ macro(get_rclcpp_information rmw_implementation var_prefix) set(${var_prefix}_FOUND TRUE) # Get rcl using the existing macro - if(NOT "${target_suffix} " STREQUAL " ") + if(NOT target_suffix STREQUAL "") get_rcl_information("${rmw_implementation}" "rcl${target_suffix}") endif()