From aeb3c55894d07cc1d02917893da2bec26ca9cd70 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Thu, 16 Jun 2016 09:19:37 -0700 Subject: [PATCH] remove trailing spaces from comparisons, obsolete quotes and explicit variable expansion --- rclcpp/CMakeLists.txt | 2 +- rclcpp/cmake/get_rclcpp_information.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()