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(cmake): infer CMAKE_MODULE_PATH in super-build #4042

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

fruzitent
Copy link
Contributor

@fruzitent fruzitent commented Jun 6, 2024

Raylib as a library should not override the CMAKE_MODULE_PATH variable. This is the way it is used in glfw.

As it also depends on find_package() calls which expect system-wide installed dependencies, this prevents you from using custom Find<target>.cmake files to build them in-source.

In CMake this is a bit hacky, but in e.g. meson this is natively supported behavior.

@raysan5 raysan5 merged commit 7b92b5b into raysan5:master Jun 7, 2024
@raysan5
Copy link
Owner

raysan5 commented Jun 7, 2024

@fruzitent thanks for the review! Please note that I do not maintain the CMake build system, in case this PR results in some unexpected behaviour, it is not tested by me.

JayLCypher pushed a commit to JayLCypher/raylib that referenced this pull request Jun 9, 2024
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