diff --git a/ballisticacore-cmake/CMakeLists.txt b/ballisticacore-cmake/CMakeLists.txt index 358cf738..08af1583 100644 --- a/ballisticacore-cmake/CMakeLists.txt +++ b/ballisticacore-cmake/CMakeLists.txt @@ -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 ()