Skip to content

Commit

Permalink
set c++ 14 globally
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed May 18, 2018
1 parent 1ec7f4d commit 0c87b6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test_cli_remapping/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

if(BUILD_TESTING)
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()

find_package(ament_cmake REQUIRED)
find_package(ament_lint_auto REQUIRED)
find_package(ament_cmake_pytest REQUIRED)
Expand All @@ -14,7 +19,6 @@ if(BUILD_TESTING)

add_executable(name_maker_rclcpp
test/name_maker.cpp)
target_compile_features(name_maker_rclcpp PRIVATE cxx_lambdas)
ament_target_dependencies(name_maker_rclcpp
"rclcpp"
"test_msgs")
Expand Down

0 comments on commit 0c87b6a

Please sign in to comment.