Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjustments for finding SFML #1761

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

Blzut3
Copy link
Collaborator

@Blzut3 Blzut3 commented Dec 24, 2024

As noted in #1759 (comment), it's reasonable to expect that distros are shipping a version of SFML new enough to have the config module in place. Therefore we can remove FindSFML.cmake. I see that you were already using the config module on Windows so this ultimately normalizes both sides there.

I also noticed that SFML 3 changed the target names and capitalization of components so it's not backwards compatible. I've added a bit to try SFML 2 and if not found try with SFML 3 names. Note that I went this direction due to #1759 indicating that SFML 3 support may need time to bake. It marginally simpler (one line, one less variable) to prefer SFML 3 if you want to go that route.

- SFML 2.5 and newer install a CMake config module so FindSFML.cmake is no longer needed.
- Additionally detect SFML 3 vs SFML 2 and use the correct target names for linking.
@sirjuddington
Copy link
Owner

I think for now we prefer SFML 2, likely will be a while until 3 is more generally available anyway.

@sirjuddington sirjuddington merged commit f9e1e0a into sirjuddington:master Dec 25, 2024
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants