Skip to content

libzip-config: Fix variable substitutions #497

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
Jun 25, 2025
Merged

Conversation

dg0yt
Copy link
Contributor

@dg0yt dg0yt commented Jun 18, 2025

When @variables@ are not set, or set to an empty value, during configuration, the resulting substition is 'set(VARIABLE )'. This unsets the variable in the current scope when the config is used, make visible values from the parent scope. What is needed is setting variables to an empty value in the current scope. This is achieved by adding quotes.

When @variables@ are not set during configuration, the
resulting substition is 'set(VARIABLE )'. This unsets
the variable in the current scope, make visible values
from the parent scope. What is needed is setting variables
to an empty value in the current scope.
@dg0yt
Copy link
Contributor Author

dg0yt commented Jun 18, 2025

(Noticed while updating the vcpkg port.)

@dillof dillof merged commit efe681f into nih-at:main Jun 25, 2025
1 check passed
@dillof
Copy link
Member

dillof commented Jun 25, 2025

Good catch, applied. Thanks.

@dg0yt dg0yt deleted the cmake-config branch June 25, 2025 13:26
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