Skip to content

Commit

Permalink
Set C++ version to 17 (#171)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Aug 15, 2023
1 parent 7559d9b commit 353b5a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gz_ros2_control_demos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ project(gz_ros2_control_demos)
if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 11)
endif()
# 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(NOT WIN32)
Expand Down

0 comments on commit 353b5a0

Please sign in to comment.