mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
back to c++17
This commit is contained in:
parent
e537d11f1d
commit
b727eadfc7
3 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ option(BUILD_SHARED_LIBS "Create shared libraries if ON" YES)
|
|||
# XXX endif()
|
||||
|
||||
if(NOT DEFINED CMAKE_CXX_STANDARD)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS NO)
|
||||
endif()
|
||||
|
|
|
@ -10,7 +10,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
|
|||
CPMUsePackageLock(package-lock.cmake)
|
||||
|
||||
if(NOT DEFINED CMAKE_CXX_STANDARD)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS NO)
|
||||
endif()
|
||||
|
|
|
@ -14,7 +14,7 @@ TEST_CASE("Greeter") {
|
|||
}
|
||||
|
||||
TEST_CASE("Greeter version") {
|
||||
#if (__APPLE__ || __cpp_lib_starts_ends_with)
|
||||
#if (__cpp_lib_starts_ends_with)
|
||||
static_assert(std::string_view(GREETER_VERSION).starts_with("1")); // TBD C++20 only
|
||||
CHECK(std::string(GREETER_VERSION).starts_with("1")); // SameMajorVersion
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue