-
Notifications
You must be signed in to change notification settings - Fork 42
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
Fix macOS CI again #2079
Fix macOS CI again #2079
Conversation
Instead of relying on variables defined in the FindSDL2_mixer module, create an IMPORTED target. This allows any overriding system SDL2_mixerConfig to add additional properties needed for the build to succeed. This might help with bugs with vcpkg/macOS.
vcpkg provides an SDL2_mixerConfig.cmake file that works better than our FindSDL2_mixer.cmake. Ensure that CMake uses the better file. Also stop trying to target macOS 11 as vcpkg ignores this when building some dependencies (upstream bug; microsoft/vcpkg#10038).
SDL2_mixerConfig.cmake uses the lowercase SDL2_mixer prefix and our FindSDL2_mixer module was defining uppercase variables with the uppercase SDL2_MIXER prefix. Harmonize to the upstream convention.
ce07688
to
63df22d
Compare
I hope this version is good to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WASM still not picking up SDL, but I don't really think its an issue to worry about.
SDL2_mixer is used in a wholly different way on emscripten, so the following confusing output is printed:
I can see that it's building |
Use the
SDL2_mixerConfig.cmake
provided by SDL2_mixer on macOS instead of ourFindSDL2_mixer.cmake
. Document the find module as being there only to support older library versions.