Parcourir la source

cmake: Fix detection of ALSA::ALSA for static linking

This was still conditional on whether SDL2::SDL2-static exists, but
it's now SDL3 that matters.

Resolves: https://github.com/libsdl-org/SDL/issues/6801
Fixes: 9eb4d1f "cmake: use FindALSA.cmake to find ALSA libraries"
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie il y a 2 ans
Parent
commit
07fa2769b8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      SDL3Config.cmake.in

+ 1 - 1
SDL3Config.cmake.in

@@ -34,7 +34,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/sdlfind.cmake")
 
 set(SDL_ALSA @SDL_ALSA@)
 set(SDL_ALSA_SHARED @SDL_ALSA_SHARED@)
-if(SDL_ALSA AND NOT SDL_ALSA_SHARED AND TARGET SDL2::SDL2-static)
+if(SDL_ALSA AND NOT SDL_ALSA_SHARED AND TARGET SDL3::SDL3-static)
   sdlFindALSA()
 endif()
 unset(SDL_ALSA)