1
General / Re: Trouble installing SFML 2.5.1 on Mac for CLion/CMake
« on: December 31, 2018, 11:23:07 pm »The config files are there, but they seem a bit hidden: Frameworks\SFML.framework\Versions\2.5.1\Resources\CMake\
When I build CSFML on macOS a few weeks ago, I had trouble using them, but I'm not sure if it was just be being bad with macOS, whether CSFML needs some changes or if there's indeed some issue with them.
Let me know if they worked for you.
Thank you, that was helpful and I was actually able to get it working with this information. I had to make a few tweaks though. I may just be doing something wrong / unnecessary, but this worked for me.
I put the whole folder I downloaded into ~/Library/Frameworks, and I had to set the SFML_DIR variable as you mentioned in your other post about upgrading:
set(SFML_DIR "~/Library/Frameworks/SFML/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake")
Once I did this, the SFMLConfig.cmake was found but the relative paths were still messed up a bit. I was able to fix them by going into SFMLSharedTargets.cmake and adding the following line two more times:
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
in the section called
# Compute the installation prefix relative to this file.
This modified the relative path to be correct based on filesystem. I'm not sure if this is a bug or just the way I set everything up, but hopefully this can help others experiencing similar issues.
Thanks again for pointing me in the right direction!