Fixed bug 2061 - SDL_filesystem API not built using cmake
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Oct 2013 00:22:07 -0700
changeset 7867 d9d50f52a686
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
--- a/CMakeLists.txt	Mon Oct 21 00:20:27 2013 -0700
+++ b/CMakeLists.txt	Mon Oct 21 00:22:07 2013 -0700
@@ -716,7 +716,7 @@
 
   if(SDL_FILESYSTEM)
     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(HAVE_SDL_FILESYSTEM TRUE)
   endif(SDL_FILESYSTEM)
@@ -995,7 +995,7 @@
     set(HAVE_SDL_VIDEO TRUE)
 
     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(HAVE_SDL_FILESYSTEM TRUE)