Skip to content
Snippets Groups Projects
Commit 9d328dee authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[cmake] Better way to enforce C++ 17 in CMakeLists.txt

parent 289e6b08
No related branches found
No related tags found
No related merge requests found
......@@ -31,9 +31,7 @@ include(cmake/ros.cmake)
compute_project_args(PROJECT_ARGS LANGUAGES CXX)
project(${PROJECT_NAME} ${PROJECT_ARGS})
# if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
# endif()
check_minimal_cxx_standard(17 ENFORCE)
cmake_policy(SET CMP0057 NEW)
find_package(ament_cmake REQUIRED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment