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

Avoid CMake config file case issues. #105

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

DanAlbert
Copy link
Member

https://cmake.org/cmake/help/latest/command/find_package.html says
that the config file can take two forms, Config.cmake or
-config.cmake. Right now we use the -config
form but don't transform the name to lower case.

Experimentally CMake uses the C locale for this, but the docs don't
take a stance (although it appears that anything outside
[A-Za-z0-9_.: -] isn't valid in a target name anyway), so just
avoid the problem altogether than use the untransformed name.

No test added because until we actually work a full end-to-end test
that actually runs CMake into our tests there isn't any useful test to
write here.

Fixes #98

https://cmake.org/cmake/help/latest/command/find_package.html says
that the config file can take two forms, <PackageName>Config.cmake or
<lower-case-package-name>-config.cmake. Right now we use the -config
form but don't transform the name to lower case.

Experimentally CMake uses the C locale for this, but the docs don't
take a stance (although it appears that anything outside
`[A-Za-z0-9_.: -] ` isn't valid in a target name anyway), so just
avoid the problem altogether than use the untransformed name.

No test added because until we actually work a full end-to-end test
that actually runs CMake into our tests there isn't any useful test to
write here.

Fixes google#98
@DanAlbert DanAlbert requested a review from enh-google June 1, 2020 21:45
@DanAlbert DanAlbert merged commit 301e444 into google:master Jun 1, 2020
@DanAlbert DanAlbert deleted the fix-cmake-package-case branch June 1, 2020 22:15
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.

[BUG] Prefab with a mixed casing name can't have its module found by CMake (Android, Gradle CMake)
2 participants