Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@eXpl0it3r
Copy link
Member

Description

Despite previous statements of not doing a SFML 3.0.2 release, I feel quite comfortable pushing this one out, given that the release build is fully automated now.

How to test this PR?

CI should pass

jcowgill and others added 3 commits September 16, 2025 07:44
`SFMLConfig.cmake` uses the `if(... IN_LIST` feature which requires
policy `CMP0057` to be enabled (added in CMake 3.3). If an application
uses `find_package(SFML)` with a minimum CMake version set to less
than `3.3`, the `IN_LIST` lines cause a CMake error.

Fix this by setting the minimum CMake policy we require in
`SFMLConfig.cmake`. CMake keeps a policy stack so this does not affect
the application's policy.
Commit e512771 ("Install pkgconfig only if module is built")
attempted to move the pkg-config installation rules into
`sfml_add_library`, but this fails if `SFML_PKGCONFIG_INSTALL_DIR` is
unset because this code is run before the default value is set in
`CMakeLists.txt`.

Fix by moving the `add_subdirectory(src/SFML)` line below the
pkg-config setup code.

Closes: #3504
@github-project-automation github-project-automation bot moved this to Backport in SFML 3.0.2 Sep 16, 2025
@eXpl0it3r eXpl0it3r changed the base branch from master to 3.0.x September 16, 2025 06:13
@eXpl0it3r eXpl0it3r moved this from Backport to In Review in SFML 3.0.2 Sep 16, 2025
@Lorenzooone
Copy link
Contributor

You may also want to backport the following fix: 3651072

I understand though if the fact that it is on the Android build makes it lower priority for a release like this. 👍

@eXpl0it3r
Copy link
Member Author

Good idea, I've included the commit!

@eXpl0it3r eXpl0it3r merged commit 683d2d2 into 3.0.x Sep 16, 2025
382 of 392 checks passed
@eXpl0it3r eXpl0it3r deleted the feature/backport branch September 16, 2025 14:19
@eXpl0it3r eXpl0it3r moved this from In Review to Done in SFML 3.0.2 Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.