aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 00:48:35 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-15 02:01:44 +0300
commite7338d65c6a7ec0ac09a5ed4bc2a3bad752155f2 (patch)
tree275fb05447a6bb76758bff87d692beb9ce61ca89
parentfix SafeInt usage (diff)
downloadwinapi-debug-e7338d65c6a7ec0ac09a5ed4bc2a3bad752155f2.tar.gz
winapi-debug-e7338d65c6a7ec0ac09a5ed4bc2a3bad752155f2.zip
mingw builds: define _WIN32_WINNT
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 306f183..c531127 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,13 @@ target_include_directories(pdb_repo SYSTEM PUBLIC 3rdparty/microsoft/SafeInt)
target_link_libraries(pdb_repo PUBLIC Boost::boost)
target_link_libraries(pdb_repo PRIVATE DbgHelp)
+if(MINGW)
+ # FILE_ID_INFO and friends require at least 0x0602:
+ target_compile_definitions(pdb_repo PUBLIC
+ NTDDI_VERSION=NTDDI_WIN8
+ _WIN32_WINNT=_WIN32_WINNT_WIN8)
+endif()
+
add_subdirectory(utils)
install(FILES LICENSE.txt DESTINATION share)