Skip to content

Commit

Permalink
Rework the check around find_package(SDL2)
Browse files Browse the repository at this point in the history
The old check was used for the macOS framework workaround, which was removed. This check should allow including a local copy of SDL2
  • Loading branch information
Daft-Freak committed Sep 9, 2022
1 parent 4b7e4d4 commit 96a175f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 32blit-sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ else()
set(CMAKE_FIND_ROOT_PATH "${CMAKE_FIND_ROOT_PATH}" "${ANDROID_LIB_DIR}/${ANDROID_ABI}") # won't search outside this
endif()

if(NOT SDL2_LIBRARIES OR NOT SDL2_INCLUDE_DIRS)
if(NOT TARGET SDL2::SDL2 AND NOT TARGET SDL2::SDL2-static)
find_package(SDL2 REQUIRED)
endif()

Expand Down

0 comments on commit 96a175f

Please sign in to comment.