aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 3 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 081e8e2..1a80fec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,20 +34,14 @@ file(GLOB_RECURSE winapi_debug_src "src/*.cpp")
add_library(winapi_debug ${winapi_debug_include} ${winapi_debug_src})
target_compile_definitions(winapi_debug PUBLIC _NO_CVCONST_H)
target_include_directories(winapi_debug PUBLIC include/)
-target_link_libraries(winapi_debug PRIVATE winapi_common winapi_utf8)
+target_link_libraries(winapi_debug
+ PUBLIC winapi_common
+ PRIVATE winapi_utf8)
target_link_libraries(winapi_debug
PUBLIC Boost::boost
PRIVATE Boost::disable_autolinking)
target_link_libraries(winapi_debug PRIVATE dbghelp)
-if(MINGW)
- # FILE_ID_INFO and friends require at least 0x0602:
- message("MINGW")
- target_compile_definitions(winapi_debug PUBLIC
- NTDDI_VERSION=NTDDI_WIN8
- _WIN32_WINNT=_WIN32_WINNT_WIN8)
-endif()
-
if(MSVC_VERSION EQUAL 1900)
# DbgHelp warnings on Visual Studio 2015:
target_compile_options(winapi_debug PUBLIC /wd4091)