Skip to content

Commit 3f6acd4

Browse files
committed
support cxx17
1 parent 3b2dcdf commit 3f6acd4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ endif()
5757
unset(isSystemDir)
5858

5959
# C++ standard
60-
set(CMAKE_CXX_STANDARD 14)
60+
if(NOT DEFINED CMAKE_CXX_STANDARD)
61+
set(CMAKE_CXX_STANDARD 17)
62+
endif()
6163

6264
# Add compiler flags for warnings and (more importantly) fPIC and debug symbols
6365
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra")

0 commit comments

Comments
 (0)