summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-05-04 05:17:45 +0200
committerAdmiral H. Curtiss <pikachu025@gmail.com>2024-05-04 05:19:01 +0200
commit5d495004567d98bb730ea9d3be1c3d3f9f79d173 (patch)
tree65863998795a4be78b045ace420d1a3b88dc5fa0 /Source/Core/DolphinNoGUI
parentf6e3c5ccef5d689d14e8baec4a98d0b8da478b39 (diff)
DolphinNoGUI: Link against dwmapi.lib on Windows in CMake
Required since 2b261b9306b9ab1ab558f79b3e88b1c89e1e8755
Diffstat (limited to 'Source/Core/DolphinNoGUI')
-rw-r--r--Source/Core/DolphinNoGUI/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinNoGUI/CMakeLists.txt b/Source/Core/DolphinNoGUI/CMakeLists.txt
index 4f10169af1..566a643c89 100644
--- a/Source/Core/DolphinNoGUI/CMakeLists.txt
+++ b/Source/Core/DolphinNoGUI/CMakeLists.txt
@@ -41,6 +41,11 @@ if(APPLE)
)
endif()
+if(WIN32)
+ # needed for adjusting window decorations with DwmSetWindowAttribute
+ target_link_libraries(dolphin-nogui PRIVATE dwmapi.lib)
+endif()
+
if(MSVC)
# Add precompiled header
target_link_libraries(dolphin-nogui PRIVATE use_pch)