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

Author Topic: Problems with new FindSFML.cmake  (Read 1665 times)

0 Members and 1 Guest are viewing this topic.

MarsCoreTeam

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.marsshooter.org
Problems with new FindSFML.cmake
« 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.
Working on the Open Source Project M.A.R.S.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problems with new FindSFML.cmake
« Reply #1 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
Laurent Gomila - SFML developer