From c43e064b25c94dccce3e8922081faf76b7c62b7c Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Tue, 8 Aug 2023 15:20:11 -0400 Subject: [PATCH] Update to C++17 (#848) Signed-off-by: Chris Lalancette --- ros2cli_test_interfaces/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ros2cli_test_interfaces/CMakeLists.txt b/ros2cli_test_interfaces/CMakeLists.txt index e8134a071..5b0890d56 100644 --- a/ros2cli_test_interfaces/CMakeLists.txt +++ b/ros2cli_test_interfaces/CMakeLists.txt @@ -1,9 +1,10 @@ cmake_minimum_required(VERSION 3.5) project(ros2cli_test_interfaces) -# Default to C++14 +# Default to C++17 if(NOT CMAKE_CXX_STANDARD) - set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD 17) + set(CMAKE_CXX_STANDARD_REQUIRED ON) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic)