Skip to content

Commit

Permalink
CMakLists.txt: always enable C++11 (#416)
Browse files Browse the repository at this point in the history
Fix for older gcc (5.4)
  • Loading branch information
toge authored Apr 1, 2024
1 parent 863e069 commit 3c268e8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ option(BUILD_OCTOVIS_SUBPROJECT "Build targets from subproject octovis" ON)
option(BUILD_DYNAMICETD3D_SUBPROJECT "Build targets from subproject dynamicEDT3D" ON)
option(OCTOVIS_QT5 "Link Octovis against Qt5?" ON)

if(OCTOVIS_QT5)
# Compiling against QT5 requires C++11.
set(CMAKE_CXX_STANDARD 11)
endif(OCTOVIS_QT5)
set(CMAKE_CXX_STANDARD 11)

ADD_SUBDIRECTORY( octomap )

Expand Down

0 comments on commit 3c268e8

Please sign in to comment.