Skip to content

Commit 5d1372d

Browse files
committed
Switch c++17
c++14 is requirement from 54346a414da72fe37ef3371cb3baddbd097cd501 However protobuf uses std::string_view which is c++17 feature.
1 parent af3bb18 commit 5d1372d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ include_directories(${LIBLZMA_INCLUDE_DIRS})
4242
find_package(ZLIB)
4343
include_directories(${ZLIB_INCLUDE_DIRS})
4444

45-
set(CMAKE_CXX_STANDARD 11)
45+
set(CMAKE_CXX_STANDARD 17)
46+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
47+
set(CMAKE_CXX_EXTENSIONS OFF)
4648

4749
include_directories(${PROJECT_SOURCE_DIR})
4850

0 commit comments

Comments
 (0)