SFML community forums

Help => General => Topic started by: MarsCoreTeam on April 18, 2011, 03:16:40 pm

Title: Problems with new FindSFML.cmake
Post by: MarsCoreTeam on April 18, 2011, 03:16:40 pm
Hi there,

When using the new FindSFML.cmake in our cmake script, the following error occurs:

Code: [Select]

SFML_LIBRARIES =  /usr/lib/libsfml-graphics.so /usr/lib/libsfml-system.so /usr/lib/libsfml-audio.so /usr/lib/libsfml-window.so
...
CMake Error at src/CMakeLists.txt:42 (add_executable):
  Target "mars" links to item " /usr/lib/libsfml-graphics.so
  /usr/lib/libsfml-system.so /usr/lib/libsfml-audio.so
  /usr/lib/libsfml-window.so" which has leading or trailing whitespace.  This
  is now an error according to policy CMP0004.


It seems that the library names lack the ";".
Is this a bug in the script or are we using it wrong?
Cmake version is 2.8.2.
Title: Problems with new FindSFML.cmake
Post by: Laurent on April 18, 2011, 03:21:18 pm
It's a known bug that should already be fixed, I forgot to do it this week-end.

See this:
http://www.sfml-dev.org/forum/viewtopic.php?p=30273#30273