summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-05-05 19:40:25 +0200
committerGitHub <noreply@github.com>2024-05-05 19:40:25 +0200
commit485bdba98ec215efe184f9f74f73f43984d2660e (patch)
treeca17cb0ae6c56641cc3d2f875a96ace66e81a7b5 /Source/Core/DolphinNoGUI
parent98529a9d2eac0a5f6f66540e7284901e361c85a0 (diff)
parent5d495004567d98bb730ea9d3be1c3d3f9f79d173 (diff)
Merge pull request #12760 from AdmiralCurtiss/win-cmake-fix
Fix building with CMake on Windows
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)