mirror of
https://github.com/aap/librw.git
synced 2025-12-18 16:39:51 +00:00
cmake: give priority to SDL2 config
This commit is contained in:
@@ -20,7 +20,10 @@ if(LIBRW_PLATFORM_GL3)
|
||||
endif()
|
||||
elseif(LIBRW_GL3_GFXLIB STREQUAL "SDL2")
|
||||
if (NOT TARGET SDL2::SDL2)
|
||||
find_package(SDL2 REQUIRED)
|
||||
find_package(SDL2 CONFIG)
|
||||
if (NOT TARGET SDL2::SDL2)
|
||||
find_package(SDL2 MODULE REQUIRED)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user