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>2017-07-21 02:47:40 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2017-07-21 02:47:40 +0300
commit07c86bac1804b2484d246dd659a3637efb054491 (patch)
tree807064f467ea5e40eb5bc4eea3160b2adca4987d /CMakeLists.txt
parent0a8640681b87d478506a174b3a5546dbc3da2607 (diff)
We now use a proper custom NTSTATUS error code category on Windows instead of converting to Win32 codes.
Made a start on replacing all usage of make_*() with Outcome v2.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07de652c..6d683889 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,6 +20,9 @@ endif()
find_quickcpplib_library(quickcpplib 1.0 REQUIRED)
find_quickcpplib_library(outcome 2.0 REQUIRED)
find_quickcpplib_library(kerneltest 1.0 REQUIRED)
+if(WIN32)
+ add_subdirectory("include/afio/ntkernel-error-category" EXCLUDE_FROM_ALL)
+endif()
# Make the standard static and shared libraries, and if supported by this compiler, C++ modules
# for both static and shared libraries as well. For the non-C++ module variants, makes the
@@ -58,6 +61,8 @@ endif()
# Set any macros this library requires
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)
endif()
# Anyone using the static or dynamic libraries is not using the header only variant
foreach(lib afio_sl afio_dl)