Skip to content

Properly format DEP_XXX_ROOT #48

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
Jul 22, 2018
Merged

Conversation

stephaneyfx
Copy link
Contributor

When specifying a dependency on library "foo-bar" by calling Config::register_dep, the environment variable to read when setting CMAKE_PREFIX_PATH is DEP_FOO_BAR_ROOT. The previous version of register_dep would work only if passed "FOO_BAR". With this change, it also accepts the more natural library name, i.e. "foo-bar", and does the necessary formatting internally when deriving the environment variable name.

When specifying a dependency on library "foo-bar" by calling `Config::register_dep`, the environment variable to read when setting `CMAKE_PREFIX_PATH` is `DEP_FOO_BAR_ROOT`. The previous version of `register_dep` would work only if passed "FOO_BAR". With this change, it also accepts the more natural library name, i.e. "foo-bar", and does the necessary formatting internally when deriving the environment variable name.
@alexcrichton alexcrichton merged commit 4a45b77 into rust-lang:master Jul 22, 2018
@alexcrichton
Copy link
Member

Thanks!

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