[Lib][Linux] Use system SDL not prebuilt.
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
# -*- cmake -*-
|
# -*- cmake -*-
|
||||||
|
|
||||||
include(OpenGL)
|
include(OpenGL)
|
||||||
include(Prebuilt)
|
|
||||||
|
|
||||||
if (STANDALONE)
|
if (LINUX)
|
||||||
include(FindSDL)
|
include(FindSDL)
|
||||||
|
|
||||||
# This should be done by FindSDL. Sigh.
|
# This should be done by FindSDL. Sigh.
|
||||||
@@ -12,14 +11,7 @@ if (STANDALONE)
|
|||||||
SDL_INCLUDE_DIR
|
SDL_INCLUDE_DIR
|
||||||
SDL_LIBRARY
|
SDL_LIBRARY
|
||||||
)
|
)
|
||||||
else (STANDALONE)
|
endif (LINUX)
|
||||||
if (LINUX)
|
|
||||||
use_prebuilt_binary(SDL)
|
|
||||||
set (SDL_FOUND TRUE)
|
|
||||||
set (SDL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
|
|
||||||
set (SDL_LIBRARY SDL)
|
|
||||||
endif (LINUX)
|
|
||||||
endif (STANDALONE)
|
|
||||||
|
|
||||||
if (SDL_FOUND)
|
if (SDL_FOUND)
|
||||||
add_definitions(-DLL_SDL=1)
|
add_definitions(-DLL_SDL=1)
|
||||||
|
|||||||
Reference in New Issue
Block a user