Skip to content

Commit

Permalink
Explicity set cxx compile standard if the env isn't (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samahu committed Apr 12, 2023
1 parent 7a10d2c commit 592e316
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ouster-ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ find_package(tf2_eigen REQUIRED)

# ==== Options ====
add_compile_options(-Wall -Wextra)
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
option(CMAKE_POSITION_INDEPENDENT_CODE "Build position independent code." ON)


set(_ouster_ros_INCLUDE_DIRS
include
ouster-sdk/ouster_client/include
Expand Down

0 comments on commit 592e316

Please sign in to comment.