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

Author Topic: FindSFML: Order of components is important  (Read 1902 times)

0 Members and 1 Guest are viewing this topic.


  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
FindSFML: Order of components is important
« on: July 07, 2012, 09:13:33 am »
When one wants to find SFML to build it with g++, it is necessary to specify the SFML components in the right order. That is, libraries depending on others precede them.

I suggest to change the example given in FindSFML.cmake:
Code: [Select]
find_package(SFML COMPONENTS system window graphics)and to write
Code: [Select]
find_package(SFML COMPONENTS graphics window system)instead. You should also emphasize the issue with g++.

See also this thread.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:


  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: FindSFML: Order of components is important
« Reply #1 on: July 07, 2012, 05:20:48 pm »
Thanks :)

The issue is described in the tutorials. When I have time I'll improve FindSFML.cmake so that any order works.
Laurent Gomila - SFML developer