Skip to content

Commit 3c268e8

Browse files
authored
CMakLists.txt: always enable C++11 (#416)
Fix for older gcc (5.4)
1 parent 863e069 commit 3c268e8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ option(BUILD_OCTOVIS_SUBPROJECT "Build targets from subproject octovis" ON)
88
option(BUILD_DYNAMICETD3D_SUBPROJECT "Build targets from subproject dynamicEDT3D" ON)
99
option(OCTOVIS_QT5 "Link Octovis against Qt5?" ON)
1010

11-
if(OCTOVIS_QT5)
12-
# Compiling against QT5 requires C++11.
13-
set(CMAKE_CXX_STANDARD 11)
14-
endif(OCTOVIS_QT5)
11+
set(CMAKE_CXX_STANDARD 11)
1512

1613
ADD_SUBDIRECTORY( octomap )
1714

0 commit comments

Comments
 (0)