Skip to content

Commit

Permalink
Fix CI, for now
Browse files Browse the repository at this point in the history
  • Loading branch information
PhysSong committed Jul 30, 2022
1 parent 387762f commit e15f2ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ IF(WANT_SDL)
# Search for SDL2 using config mode first, then fall back to module mode.
# This allows us to use SDL2's own CMake configuration files if available.
FIND_PACKAGE(SDL2 CONFIG QUIET)
IF(NOT TARGET SDL2::SDL2)
IF(TARGET SDL2::SDL2)
SET(SDL2_INCLUDE_DIR "")
SET(SDL2_LIBRARY "SDL2::SDL2")
ELSE()
UNSET(SDL2_FOUND)
FIND_PACKAGE(SDL2 MODULE)
ENDIF()
Expand All @@ -309,10 +312,10 @@ IF(WANT_SDL)
SET(LMMS_HAVE_SDL TRUE)
SET(LMMS_HAVE_SDL2 TRUE)
SET(STATUS_SDL "OK, using SDL2")
SET(SDL2_LIBRARY "SDL2::SDL2")
SET(SDL_INCLUDE_DIR "")
SET(SDL_LIBRARY "")
ELSE()
SET(SDL2_INCLUDE_DIR "")
SET(SDL2_LIBRARY "")
ENDIF()
ENDIF()
Expand Down

0 comments on commit e15f2ca

Please sign in to comment.