The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmake: Handle SDL2 static builds

authored by

Ryan Pavlik and committed by
Jakob Bornecrantz
a6bedb9b 0cb64ce5

+5 -2
+5 -2
CMakeLists.txt
··· 204 204 endif() 205 205 206 206 if(XRT_HAVE_SDL2) 207 - # Arch work around 208 207 if(NOT DEFINED SDL2_LIBRARIES) 209 - set(SDL2_LIBRARIES SDL2::SDL2) 208 + if(TARGET SDL2::SDL2-static) 209 + set(SDL2_LIBRARIES SDL2::SDL2-static) 210 + elseif(TARGET SDL2::SDL2) 211 + set(SDL2_LIBRARIES SDL2::SDL2) 212 + endif() 210 213 endif() 211 214 endif() 212 215