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 - SDL_filesystem API not built using cmake
Summary: SDL_filesystem API not built using cmake
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-24 08:36 UTC by Marcus von Appen
Modified: 2013-10-21 07:22 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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