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

Fix macOS CI again #2079

Merged
merged 7 commits into from
Dec 25, 2023
Merged

Fix macOS CI again #2079

merged 7 commits into from
Dec 25, 2023

Conversation

lmoureaux
Copy link
Contributor

Use the SDL2_mixerConfig.cmake provided by SDL2_mixer on macOS instead of our FindSDL2_mixer.cmake. Document the find module as being there only to support older library versions.

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.
@lmoureaux
Copy link
Contributor Author

I hope this version is good to merge

Copy link
Collaborator

@jwrober jwrober left a 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.

@lmoureaux
Copy link
Contributor Author

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:

-- Could NOT find SDL2_mixer (missing: SDL2_mixer_INCLUDE_DIRS) 
-- Building with audio support enabled

I can see that it's building audio_sdl.cpp so sound support is enabled.

@lmoureaux lmoureaux merged commit 90c02c5 into longturn:master Dec 25, 2023
20 checks passed
@lmoureaux lmoureaux deleted the bugfix/macos-ci branch December 25, 2023 02:11
@lmoureaux lmoureaux added the back-port back-port candidate label Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-port back-port candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants