aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 00:53:30 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 00:54:29 +0300
commit4eed412140b37b3d967ab712f6d4feee36f6eb87 (patch)
tree7d0d453a46b9a879a14deed4da2384d99f8621a2 /CMakeLists.txt
parentclang-format: SafeInt is no more (diff)
downloadwinapi-common-4eed412140b37b3d967ab712f6d4feee36f6eb87.tar.gz
winapi-common-4eed412140b37b3d967ab712f6d4feee36f6eb87.zip
File: add get_size/query_id
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8553200..035ea3a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,6 +17,13 @@ target_link_libraries(winapi_common PUBLIC Boost::disable_autolinking Boost::boo
install(TARGETS winapi_common ARCHIVE DESTINATION lib)
install(DIRECTORY include/winapi DESTINATION include)
+if(MINGW)
+ # FILE_ID_INFO and friends require at least 0x0602:
+ target_compile_definitions(winapi_common PUBLIC
+ NTDDI_VERSION=NTDDI_WIN8
+ _WIN32_WINNT=_WIN32_WINNT_WIN8)
+endif()
+
if(WINAPI_COMMON_TESTS)
add_subdirectory(test)
endif()