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>2018-06-19 22:29:26 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-06-19 22:29:26 +0300
commit305934b3c3b97e476e018ca6a210df923ad5546a (patch)
tree3811433fd30c565c6bc15947d3f2da4b56b55740 /CMakeLists.txt
parent5854802f283de2b9c5026ea1a905ffdde1b09034 (diff)
Did a bit more work on trying to get the single file header edition working. Fair bit left to go on it I'd say.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f8349bc9..5feb59e5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -158,14 +158,18 @@ if(AFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE)
endif()
if(WIN32)
all_compile_definitions(PRIVATE _WIN32_WINNT=0x600) ## Target WinVista
- target_link_libraries(afio_dl PUBLIC ntkernel-error-category::dl)
- target_link_libraries(afio_sl PUBLIC ntkernel-error-category::sl)
+ if(NOT AFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE)
+ target_link_libraries(afio_dl PUBLIC ntkernel-error-category::dl)
+ target_link_libraries(afio_sl PUBLIC ntkernel-error-category::sl)
+ endif()
endif()
# Anyone using the static or dynamic libraries is not using the header only variant
foreach(lib afio_sl afio_dl)
target_compile_definitions(${lib} INTERFACE AFIO_HEADERS_ONLY=0)
target_compile_definitions(${lib} PRIVATE AFIO_SOURCE=1)
endforeach()
+# The single header test requires C++ 17
+target_compile_features(afio-example_single-header PRIVATE cxx_std_17)
# For all possible configurations of this library, add each test
include(QuickCppLibMakeStandardTests)