Skip to content

Install SDL2/SDL3 cmake config only when installing the ports #24306

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

Merged
merged 1 commit into from
May 13, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented May 12, 2025

The cmake config files are logically part of the ports so install them then the port is installed

This doesn't fix #19780 completely, since trying to build an SDL2 or SDL3 cmake project will still require some kind of install step, but it makes it less confusing.

@sbc100 sbc100 requested a review from kripken May 12, 2025 15:38
@sbc100
Copy link
Collaborator Author

sbc100 commented May 12, 2025

I'll probably land #24308 first we we can move these files alongside the config headers.

@sbc100 sbc100 force-pushed the sdl_cmake_config_files branch from 114f71d to 48ef633 Compare May 12, 2025 20:43
@sbc100
Copy link
Collaborator Author

sbc100 commented May 12, 2025

Ok, now that we are storing these files alongside the ports this change might make more sense.

The cmake config files are logically part of the ports
so install them then the port is installed.

This doesn't fix emscripten-core#19780 completely, since trying to build an
SDL2 or SDL3 cmake project will still require some kind of
install step, but it makes it less confusing.
@sbc100 sbc100 force-pushed the sdl_cmake_config_files branch from 48ef633 to 855671c Compare May 12, 2025 22:25
@sbc100 sbc100 merged commit 99c6e41 into emscripten-core:main May 13, 2025
28 checks passed
@sbc100 sbc100 deleted the sdl_cmake_config_files branch May 13, 2025 00:06
sbc100 added a commit to sbc100/emscripten that referenced this pull request May 22, 2025
sbc100 added a commit to sbc100/emscripten that referenced this pull request May 22, 2025
sbc100 added a commit to sbc100/emscripten that referenced this pull request May 22, 2025
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