aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)