Skip to content

Commit

Permalink
Don't enforce C++11 standard
Browse files Browse the repository at this point in the history
The default in Ubuntu 18.04 and 20.04 is C++14.
Ubuntu 22.04 uses C++17 as the gcc default, which is required by log4cxx there.
  • Loading branch information
rhaschke committed Oct 26, 2023
1 parent 9398c98 commit f81d1bd
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 f81d1bd

Please sign in to comment.