| Summary: | Build failed if include SDL CMakeLists.txt from another project | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ivan Vashchaev <vivkin> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.1 | ||
| Hardware: | x86 | ||
| OS: | Mac OS X 10.8 | ||
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though! |
If setted -std=c++11 compiler flag (I think and any other C++ related flags) .m files can't compile Fix: diff -r e749005cfd72 CMakeLists.txt --- a/CMakeLists.txt Mon Feb 10 13:40:02 2014 -0800 +++ b/CMakeLists.txt Tue Feb 11 23:28:14 2014 +0400 @@ -991,6 +991,7 @@ if(SDL_FILESYSTEM) set(SDL_FILESYSTEM_COCOA 1) file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m) + set_source_files_properties(${FILESYSTEM_SOURCES} PROPERTIES LANGUAGE C) set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES}) set(HAVE_SDL_FILESYSTEM TRUE) endif()