mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
CMake: Use find_package to find SDL2
This ensures that the SDL2 uses an absolute library path, which is necessary when SDL2 isn't present in the default link directories (e.g. on macOS).
This commit is contained in:
parent
3567c43fb5
commit
d7a8d385d8
2 changed files with 7 additions and 4 deletions
2
3rdparty/CMakeLists.txt
vendored
2
3rdparty/CMakeLists.txt
vendored
|
@ -354,7 +354,7 @@ target_link_libraries(3rdparty_openal INTERFACE ${OPENAL_LIBRARY})
|
|||
set(FAUDIO_TARGET 3rdparty_dummy_lib)
|
||||
if(USE_FAUDIO)
|
||||
# FAudio depends on SDL2
|
||||
pkg_check_modules(SDL2 sdl2)
|
||||
find_package(SDL2)
|
||||
if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.0.9)
|
||||
message("-- RPCS3: FAudio requires SDL 2.0.9 or newer.")
|
||||
else()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue