stewartmatheson / projectx

0 stars 1 forks source link

Allow linking against plain SFML #51

Closed msbit closed 3 years ago

msbit commented 3 years ago

Add configuration item, defaulting to -d suffix, to allow linking against plain SFML released libraries

msbit commented 3 years ago

As I'm just using the SFML libraries downloaded from https://www.sfml-dev.org/download/sfml/2.5.1/, my dylibs don't have the -d suffix, so this just adds a configuration item to allow linking against them again:

-DSFML_LIBRARY_SUFFIX=
stewartmatheson commented 3 years ago

yeah arch packages them up with out the -d too. Out of interest are you using clang or gcc? Also I think you might have already mentioned this but did you build your own SFML or are you using a pre compiled dowload?

msbit commented 3 years ago

are you using clang or gcc?

clang on my macs, gcc on the windows box (under WSL)

did you build your own SFML or are you using a pre compiled dowload?

Generally the pre-compiled download. I've built it myself for debugging reasons, but as I'm split across a few machines, it is significantly easier to just download the SFML zip and work with that.