diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 00:48:35 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 02:01:44 +0300 |
commit | e7338d65c6a7ec0ac09a5ed4bc2a3bad752155f2 (patch) | |
tree | 275fb05447a6bb76758bff87d692beb9ce61ca89 | |
parent | fix SafeInt usage (diff) | |
download | winapi-debug-e7338d65c6a7ec0ac09a5ed4bc2a3bad752155f2.tar.gz winapi-debug-e7338d65c6a7ec0ac09a5ed4bc2a3bad752155f2.zip |
mingw builds: define _WIN32_WINNT
-rw-r--r-- | CMakeLists.txt | 7 |
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) |