diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
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() |