We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2061

Summary: SDL_filesystem API not built using cmake
Product: SDL Reporter: Marcus von Appen <mva>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: All   

Description Marcus von Appen 2013-08-24 08:36:06 UTC
The SDL_filesystem API does not get built properly on Unix and BeOS using cmake due to not including the correct C files.

Patch:

diff -r 7f965b1a24e0 CMakeLists.txt
--- a/CMakeLists.txt	Fri Aug 23 23:34:23 2013 -0400
+++ b/CMakeLists.txt	Sat Aug 24 10:35:29 2013 +0200
@@ -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)
Comment 1 Sam Lantinga 2013-10-21 07:22:32 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/d9d50f52a686