From e7338d65c6a7ec0ac09a5ed4bc2a3bad752155f2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 15 Jan 2020 00:48:35 +0300 Subject: mingw builds: define _WIN32_WINNT --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3