Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2019-10-09 19:51:59 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2019-10-09 19:51:59 +0300
commitc6ed09566e600d9fd54e871b7f407f80d2573062 (patch)
tree5fa05ca065cfd5eb9c9b6443d572a4736b2b4d0c /CMakeLists.txt
parent9740ba82970f959840c982372f3abf4a026a10fd (diff)
Add C++ 20 testing to CI for GCC, clang and MSVC.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f45d9d7b..dc8bfef9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -198,6 +198,7 @@ endif()
if(WIN32)
all_compile_definitions(PRIVATE _WIN32_WINNT=0x600) ## Target WinVista
if(NOT LLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE)
+ target_link_libraries(llfio_hl INTERFACE ntkernel-error-category::hl)
target_link_libraries(llfio_dl PUBLIC ntkernel-error-category::dl)
target_link_libraries(llfio_sl PUBLIC ntkernel-error-category::sl)
endif()
@@ -275,8 +276,10 @@ if(NOT PROJECT_IS_DEPENDENCY)
if(NOT LATEST_CXX_FEATURE)
foreach(feature ${CMAKE_CXX_COMPILE_FEATURES})
if(feature STREQUAL "cxx_std_17")
- set(LATEST_CXX_FEATURE "cxx_std_17")
- indented_message(STATUS "NOTE: This compiler claims to support C++ 17, enabling for header-only unit test suite")
+ if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "8.0")
+ set(LATEST_CXX_FEATURE "cxx_std_17")
+ indented_message(STATUS "NOTE: This compiler claims to support C++ 17, enabling for header-only unit test suite")
+ endif()
endif()
endforeach()
endif()