Skip to content

Commit

Permalink
PR #2914 from ros-o: Don't enforce C++11 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Jan 2, 2024
2 parents 7be7e4b + 2b5f29e commit b14ce43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions realsense2_camera/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 2.8.3)
project(realsense2_camera)
add_compile_options(-std=c++11)

option(BUILD_WITH_OPENMP "Use OpenMP" OFF)
option(SET_USER_BREAK_AT_STARTUP "Set user wait point in startup (for debug)" OFF)
Expand Down Expand Up @@ -62,7 +61,7 @@ endif()

if (WIN32)
else()
set(CMAKE_CXX_FLAGS "-fPIE -fPIC -std=c++11 -D_FORTIFY_SOURCE=2 -fstack-protector -Wformat -Wformat-security -Wall ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-fPIE -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector -Wformat -Wformat-security -Wall ${CMAKE_CXX_FLAGS}")
endif()

add_message_files(
Expand Down

0 comments on commit b14ce43

Please sign in to comment.