DolphinNoGUI: Link against dwmapi.lib on Windows in CMake

Required since 2b261b9306
This commit is contained in:
Admiral H. Curtiss 2024-05-04 05:17:45 +02:00
parent f6e3c5ccef
commit 5d49500456
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB

View File

@ -41,6 +41,11 @@ if(APPLE)
) )
endif() endif()
if(WIN32)
# needed for adjusting window decorations with DwmSetWindowAttribute
target_link_libraries(dolphin-nogui PRIVATE dwmapi.lib)
endif()
if(MSVC) if(MSVC)
# Add precompiled header # Add precompiled header
target_link_libraries(dolphin-nogui PRIVATE use_pch) target_link_libraries(dolphin-nogui PRIVATE use_pch)