Skip to content

Commit

Permalink
Set Linux and QNX to C++17 in accordance with iceoryx build (ros2#105)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
  • Loading branch information
mossmaurice committed Jan 8, 2024
1 parent bd584c2 commit 19e2997
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rmw_iceoryx_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ if(NOT CMAKE_C_STANDARD)
set(CMAKE_C_STANDARD 99)
endif()

# Set C++ standard in accordance with iceoryx
# https://github.com/eclipse-iceoryx/iceoryx/blob/v2.0.3/iceoryx_hoofs/cmake/IceoryxPlatform.cmake#L26-L38
# Set C++ standard in accordance with iceoryx's 'ICEORYX_CXX_STANDARD' CMake variable
if(LINUX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
elseif(QNX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
elseif(WIN32)
set(CMAKE_CXX_STANDARD 17)
elseif(APPLE)
Expand Down

0 comments on commit 19e2997

Please sign in to comment.