Fixed bug 2061 - SDL_filesystem API not built using cmake
Marcus von Appen The SDL_filesystem API does not get built properly on Unix and BeOS using cmake due to not including the correct C files.main
parent
deb8086b08
commit
6f76bc290a
|
@ -716,7 +716,7 @@ if(UNIX AND NOT APPLE)
|
||||||
|
|
||||||
if(SDL_FILESYSTEM)
|
if(SDL_FILESYSTEM)
|
||||||
set(SDL_FILESYSTEM_UNIX 1)
|
set(SDL_FILESYSTEM_UNIX 1)
|
||||||
file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/unix/*.c)
|
file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/unix/*.c)
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
|
set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
|
||||||
set(HAVE_SDL_FILESYSTEM TRUE)
|
set(HAVE_SDL_FILESYSTEM TRUE)
|
||||||
endif(SDL_FILESYSTEM)
|
endif(SDL_FILESYSTEM)
|
||||||
|
@ -995,7 +995,7 @@ elseif(BEOS)
|
||||||
set(HAVE_SDL_VIDEO TRUE)
|
set(HAVE_SDL_VIDEO TRUE)
|
||||||
|
|
||||||
set(SDL_FILESYSTEM_BEOS 1)
|
set(SDL_FILESYSTEM_BEOS 1)
|
||||||
file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/beos/*.cc)
|
file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/beos/*.cc)
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
|
set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
|
||||||
set(HAVE_SDL_FILESYSTEM TRUE)
|
set(HAVE_SDL_FILESYSTEM TRUE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue