mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-25 08:23:35 +08:00
Merge pull request #210 from ritiek/patch-1
Assume ${SDL2_LIBRARIES} if not defined
This commit is contained in:
commit
261fca9e24
@ -32,6 +32,10 @@ if (HEADLESS)
|
||||
else ()
|
||||
find_package(SDL2 QUIET)
|
||||
if (SDL2_FOUND)
|
||||
if ("${SDL2_LIBRARIES}" STREQUAL "")
|
||||
message(WARNING "SDL2_LIBRARIES wasn't set, manually setting to SDL2::SDL2")
|
||||
set(SDL2_LIBRARIES "SDL2::SDL2")
|
||||
endif ()
|
||||
# Getting complaint about space at the end of this on ubuntu16.
|
||||
string(STRIP ${SDL2_LIBRARIES} SDL2_LIBRARIES)
|
||||
else ()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user