You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
550 B
30 lines
550 B
3 years ago
|
# ArduinoJson - https://arduinojson.org
|
||
|
# Copyright Benoit Blanchon 2014-2021
|
||
|
# MIT License
|
||
|
|
||
|
if(MSVC_VERSION LESS 1910)
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5)
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7)
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 17)
|
||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||
|
|
||
|
add_executable(Cpp17Tests
|
||
|
string_view.cpp
|
||
|
)
|
||
|
|
||
|
add_test(Cpp17 Cpp17Tests)
|
||
|
|
||
|
set_tests_properties(Cpp17
|
||
|
PROPERTIES
|
||
|
LABELS "Catch"
|
||
|
)
|