Skip to content

Commit f961062

Browse files
committed
fixup! fix: set compiler to Cpp20
1 parent 1d6d395 commit f961062

3 files changed

Lines changed: 1 addition & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ project(ncrypto VERSION 1.0.1)
33

44
include(CTest)
55
include(GNUInstallDirs)
6+
include(cmake/ncrypto-flags.cmake)
67

78
if (NCRYPTO_SHARED_LIBS)
89
find_package(OpenSSL REQUIRED)

src/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
add_library(ncrypto ncrypto.cpp engine.cpp)
2-
set_target_properties(ncrypto PROPERTIES CXX_STANDARD 20 CXX_STANDARD_REQUIRED YES)
32
target_link_libraries(ncrypto PUBLIC OpenSSL::SSL OpenSSL::Crypto)
43
target_include_directories(ncrypto
54
PUBLIC

tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
include(GoogleTest)
22
add_executable(basic basic.cpp)
3-
set_target_properties(basic PROPERTIES CXX_STANDARD 20 CXX_STANDARD_REQUIRED YES)
43
target_link_libraries(basic PRIVATE ncrypto GTest::gtest_main)
54
gtest_discover_tests(basic)
65
if(MSVC OR MINGW)

0 commit comments

Comments
 (0)