Skip to content

Commit 5ab527c

Browse files
committed
chore: upgrade c++ version to c++17
1 parent 0d5c2b9 commit 5ab527c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ endif(MSVC)
161161

162162
# set a few other things at the top level to prevent incompatibilities
163163
set(CMAKE_C_STANDARD 99)
164-
set(CMAKE_CXX_STANDARD 11)
164+
set(CMAKE_CXX_STANDARD 17)
165165
set(CMAKE_CXX_STANDARD_REQUIRED ON)
166166
set(CMAKE_CXX_EXTENSIONS OFF)
167167
add_definitions(-D_GNU_SOURCE)

src/tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ if (CRYPTO_BACKEND_LOWERCASE STREQUAL "openssl")
7878
find_package(OpenSSL 1.1.1 REQUIRED)
7979
endif()
8080

81-
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.8.5")
82-
set(CMAKE_CXX_STANDARD 14)
81+
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "7.0.0")
82+
set(CMAKE_CXX_STANDARD 17)
8383
endif()
8484

8585
if(CRYPTO_BACKEND_BOTAN3)

0 commit comments

Comments
 (0)