dmonzonis / lazarus

Engine for creating roguelikes in C++
GNU General Public License v3.0
0 stars 0 forks source link

SFML failing to load if version < 2.5 #11

Open dmonzonis opened 5 years ago

dmonzonis commented 5 years ago

On dinosaur distributions like Linux Mint, the version of the SFML library in the repositories (libsfml-dev) is version 2.4, so CMake fails to find it as the CMake modules were changed from version 2.4 to 2.5.

We should add a more intelligent check, and in case CMake can't find the SFML CMake module to link the libraries, load the SFML headers from a folder in the project's root directory, exactly like it is done in the case of Windows (but with the correct distribution of SFML).