Browse Source

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.
pull/419/merge
Vladimír Vondruš 2 years ago
parent
commit
657f7164a8
  1. 4
      modules/FindSDL2.cmake

4
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) if(CORRADE_TARGET_WINDOWS AND _SDL2_DYNAMIC)
# .dll is in LOCATION, .lib is in IMPLIB. Yay, useful! # .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_DEBUG ${_SDL2_TARGET} IMPORTED_LOCATION_DEBUG)
get_target_property(SDL2_DLL_RELEASE SDL2 IMPORTED_LOCATION_RELEASE) get_target_property(SDL2_DLL_RELEASE ${_SDL2_TARGET} IMPORTED_LOCATION_RELEASE)
endif() endif()
return() return()

Loading…
Cancel
Save