SFML community forums
Bindings - other languages => C => Topic started by: aisman on June 10, 2011, 08:18:48 am
-
I have downloaded SFML2 today mornig.
SFML was successful compiled
All SFML* variables was set correct
but when I start cmake (Configure Button) I get this CMake error below:
How can I fix it? Maybe a problem with the '_' on the path (\_SFML2_110610\...)?
Thanks
aisman
Found SFML: D:\_1_PRIVATE_\_SFML2_110610\include
CMake Error at cmake/Macros.cmake:55 (csfml_parse_arguments):
Syntax error in cmake code at
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/cmake/Macros.cmake:55
when parsing string
SOURCES;D:/_1_PRIVATE_/_SFML2_110610/bindings/c/src/SFML/System/Clock.cpp;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/src/SFML/System/ClockStruct.h;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/include/SFML/System/Clock.h;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/src/SFML/System/Mutex.cpp;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/src/SFML/System/MutexStruct.h;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/include/SFML/System/Mutex.h;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/src/SFML/System/Sleep.cpp;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/include/SFML/System/Sleep.h;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/src/SFML/System/Thread.cpp;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/src/SFML/System/ThreadStruct.h;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/include/SFML/System/Thread.h;
D:/_1_PRIVATE_/_SFML2_110610/bindings/c/include/SFML/System/Types.h;
DEPENDS;debug;D:\_1_PRIVATE_\_SFML2_110610\SFML2_build\lib\Debug;
optimized;D:\_1_PRIVATE_\_SFML2_110610\SFML2_build\lib\Release
Invalid escape sequence \_
Call Stack (most recent call first):
src/SFML/System/CMakeLists.txt:22 (csfml_add_library)
Configuring incomplete, errors occurred!
-
Indeed, the parsers fails on '\_'. I don't know why CMake uses \ instead of / as the path separator (or maybe this path was given by you?). But anyway, removing _ from your path will probably fix the error.
-
I already had issues when I copied a path from the Windows Explorer which contains back-slashes. CMake still seems to have problems with it. But when you insert a path into a path field, you can re-enter the last subfolder and it will automatically change \ to /.
So, just make sure that all paths contain slashes, at least until this CMake bug is fixed.