Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: CMake Error at cmake/Macros.cmake:55 (csfml_parse_arguments)  (Read 4474 times)

0 Members and 1 Guest are viewing this topic.

aisman

  • Newbie
  • *
  • Posts: 25
    • View Profile
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

Code: [Select]
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!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
CMake Error at cmake/Macros.cmake:55 (csfml_parse_arguments)
« Reply #1 on: June 10, 2011, 01:32:09 pm »
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.
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6278
  • Thor Developer
    • View Profile
    • Bromeon
CMake Error at cmake/Macros.cmake:55 (csfml_parse_arguments)
« Reply #2 on: June 10, 2011, 02:01:47 pm »
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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: