Fixed bug 2061 - SDL_filesystem API not built using cmake
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Oct 2013 00:22:07 -0700
changeset 7867d9d50f52a686
parent 7866 42da269b7977
child 7868 f92ba4923dcd
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.
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Mon Oct 21 00:20:27 2013 -0700
     1.2 +++ b/CMakeLists.txt	Mon Oct 21 00:22:07 2013 -0700
     1.3 @@ -716,7 +716,7 @@
     1.4  
     1.5    if(SDL_FILESYSTEM)
     1.6      set(SDL_FILESYSTEM_UNIX 1)
     1.7 -    file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/unix/*.c)
     1.8 +    file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/unix/*.c)
     1.9      set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
    1.10      set(HAVE_SDL_FILESYSTEM TRUE)
    1.11    endif(SDL_FILESYSTEM)
    1.12 @@ -995,7 +995,7 @@
    1.13      set(HAVE_SDL_VIDEO TRUE)
    1.14  
    1.15      set(SDL_FILESYSTEM_BEOS 1)
    1.16 -    file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/beos/*.cc)
    1.17 +    file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/beos/*.cc)
    1.18      set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
    1.19      set(HAVE_SDL_FILESYSTEM TRUE)
    1.20