Skip to content

Commit

Permalink
Merge pull request ament#72 from ament/cmake35
Browse files Browse the repository at this point in the history
require CMake 3.5
  • Loading branch information
dirk-thomas committed Jun 16, 2016
2 parents 6bd0641 + e830849 commit 7e04600
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ament_cmake_auto/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.5)

project(ament_cmake_auto NONE)

Expand Down
2 changes: 1 addition & 1 deletion ament_cmake_auto/cmake/ament_auto_add_executable.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ macro(ament_auto_add_executable target)
"${CMAKE_CURRENT_SOURCE_DIR}/include")
endif()
# link against other libraries of this package
if(NOT "${${PROJECT_NAME}_LIBRARIES} " STREQUAL " " AND
if(NOT ${PROJECT_NAME}_LIBRARIES STREQUAL "" AND
NOT ARG_NO_TARGET_LINK_LIBRARIES)
target_link_libraries("${target}" ${${PROJECT_NAME}_LIBRARIES})
endif()
Expand Down
2 changes: 1 addition & 1 deletion ament_cmake_auto/cmake/ament_auto_add_library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ macro(ament_auto_add_library target)
"${CMAKE_CURRENT_SOURCE_DIR}/include")
endif()
# link against other libraries of this package
if(NOT "${${PROJECT_NAME}_LIBRARIES} " STREQUAL " " AND
if(NOT ${PROJECT_NAME}_LIBRARIES STREQUAL "" AND
NOT ARG_NO_TARGET_LINK_LIBRARIES)
target_link_libraries("${target}" ${${PROJECT_NAME}_LIBRARIES})
endif()
Expand Down
4 changes: 2 additions & 2 deletions ament_cmake_auto/cmake/ament_auto_package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ macro(ament_auto_package)
endif()

# export and install all libraries
if(NOT "${${PROJECT_NAME}_LIBRARIES} " STREQUAL " ")
if(NOT ${PROJECT_NAME}_LIBRARIES STREQUAL "")
ament_export_libraries(${${PROJECT_NAME}_LIBRARIES})
install(
TARGETS ${${PROJECT_NAME}_LIBRARIES}
Expand All @@ -61,7 +61,7 @@ macro(ament_auto_package)
endif()

# install all executables
if(NOT "${${PROJECT_NAME}_EXECUTABLES} " STREQUAL " ")
if(NOT ${PROJECT_NAME}_EXECUTABLES STREQUAL "")
install(
TARGETS ${${PROJECT_NAME}_EXECUTABLES}
ARCHIVE DESTINATION lib
Expand Down

0 comments on commit 7e04600

Please sign in to comment.