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

CMake: Fix building against macOS framework builds of SDL #11710

Merged
merged 2 commits into from Apr 11, 2023

Conversation

TellowKrinkle
Copy link
Contributor

Our find script wasn't compatible with SDL's framework builds. SDL has shipped with a CMake find script since 2.0.10, and hopefully no one is trying to use an SDL older than that, so I just removed the find script.

In addition, the framework build's find script supplies its link arguments with INTERFACE_LINK_OPTIONS, which didn't propagate across private dependencies until CMake 3.17 with CMP0099 enabled.

Note: An alternative to manually enabling these policies would be to mass enable all policies introduced up to 3.26 (when supported) with cmake_minimum_required(VERSION 3.13...3.26). Preferences?

Allows INTERFACE_LINK_OPTIONS to propagate through private dependencies, required by MacOS framework builds of SDL2
It doesn't properly set the include paths for macos framework builds of SDL, and SDL has had its own find script since 2.0.10
@OatmealDome
Copy link
Member

Could you drop the CI test commit now that the build machine has been fixed?

@OatmealDome
Copy link
Member

These changes LGTM, though I'd like someone more familiar with CMake to comment on the note.

@AdmiralCurtiss
Copy link
Contributor

I'm not super familiar with CMake either, but enabling all policies seems like an easy way to subtly change behavior in an unnoticeable way, so probably not ideal. Someone would probably need to go through them one by one and see if any could be problematic, and only if they're confirmed not to be enable them.

@delroth
Copy link
Member

delroth commented Apr 11, 2023

@dolphin-emu-bot rebuild

(testing new buildbot config before merging)

@delroth delroth merged commit af52b5a into dolphin-emu:master Apr 11, 2023
14 checks passed
@TellowKrinkle TellowKrinkle deleted the SDL2Framework branch April 11, 2023 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants