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

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

0 Members and 1 Guest are viewing this topic.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • 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:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • 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