Skip to content

Commit c43e064

Browse files
authored
Update to C++17 (#848)
Signed-off-by: Chris Lalancette <[email protected]>
1 parent 351ef3c commit c43e064

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ros2cli_test_interfaces/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
cmake_minimum_required(VERSION 3.5)
22
project(ros2cli_test_interfaces)
33

4-
# Default to C++14
4+
# Default to C++17
55
if(NOT CMAKE_CXX_STANDARD)
6-
set(CMAKE_CXX_STANDARD 14)
6+
set(CMAKE_CXX_STANDARD 17)
7+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
78
endif()
89
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
910
add_compile_options(-Wall -Wextra -Wpedantic)

0 commit comments

Comments
 (0)