From 657f7164a80dbee5d91aaba5cc59df5fa7628157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 6 Oct 2024 12:15:27 +0200 Subject: [PATCH] modules: fix FindSDL2 on Windows if SDL's config is present. The CI builds that began failing in the previous commit should work now again. Sorry for the regression. --- modules/FindSDL2.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/FindSDL2.cmake b/modules/FindSDL2.cmake index 30dc70572..7ee7ef7c7 100644 --- a/modules/FindSDL2.cmake +++ b/modules/FindSDL2.cmake @@ -106,8 +106,8 @@ if(TARGET SDL2::SDL2 OR TARGET SDL2::SDL2-static OR TARGET SDL2 OR TARGET SDL2-s if(CORRADE_TARGET_WINDOWS AND _SDL2_DYNAMIC) # .dll is in LOCATION, .lib is in IMPLIB. Yay, useful! - get_target_property(SDL2_DLL_DEBUG SDL2 IMPORTED_LOCATION_DEBUG) - get_target_property(SDL2_DLL_RELEASE SDL2 IMPORTED_LOCATION_RELEASE) + get_target_property(SDL2_DLL_DEBUG ${_SDL2_TARGET} IMPORTED_LOCATION_DEBUG) + get_target_property(SDL2_DLL_RELEASE ${_SDL2_TARGET} IMPORTED_LOCATION_RELEASE) endif() return()