mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
cmake: Handle SDL2 static builds
This commit is contained in:
parent
0cb64ce5bd
commit
a6bedb9bb8
|
@ -204,9 +204,12 @@ if(XRT_HAVE_OPENGLES AND NOT XRT_HAVE_EGL)
|
|||
endif()
|
||||
|
||||
if(XRT_HAVE_SDL2)
|
||||
# Arch work around
|
||||
if(NOT DEFINED SDL2_LIBRARIES)
|
||||
set(SDL2_LIBRARIES SDL2::SDL2)
|
||||
if(TARGET SDL2::SDL2-static)
|
||||
set(SDL2_LIBRARIES SDL2::SDL2-static)
|
||||
elseif(TARGET SDL2::SDL2)
|
||||
set(SDL2_LIBRARIES SDL2::SDL2)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue