From c9996451820828ddb1aca2a05c429b3999f02ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 26 Nov 2019 16:02:24 +0100 Subject: [PATCH] modules: actually properly link to static Windows SDL dependencies. I messed up in 86a9f01dab7224db6c386b71fb3adfb6bdeb3424. Blind coding FTW, eh. --- modules/FindSDL2.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindSDL2.cmake b/modules/FindSDL2.cmake index b628e41f5..6f1fb77c8 100644 --- a/modules/FindSDL2.cmake +++ b/modules/FindSDL2.cmake @@ -182,7 +182,7 @@ if(NOT TARGET SDL2::SDL2) # Windows dependencies for a static library. Unfortunately there's no # easy way to figure out if a *.lib is static or dynamic, so we're # adding only if a DLL is not found. - if(CORRADE_TARGET_WINDOWS AND NOT CORRADE_TARGET_WINDOWS_RT AND SDL2_DLL_RELEASE AND NOT SDL2_DLL_DEBUG) + if(CORRADE_TARGET_WINDOWS AND NOT CORRADE_TARGET_WINDOWS_RT AND NOT SDL2_DLL_RELEASE AND NOT SDL2_DLL_DEBUG) set_property(TARGET SDL2::SDL2 APPEND PROPERTY INTERFACE_LINK_LIBRARIES # https://github.com/SDL-mirror/SDL/blob/release-2.0.10/CMakeLists.txt#L1338 user32 gdi32 winmm imm32 ole32 oleaut32 version uuid advapi32 setupapi shell32