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 support for consuming YCM via FetchContent_MakeAvailable and bump version to 0.17.1 #464

Merged
merged 4 commits into from
Nov 9, 2024

Conversation

traversaro
Copy link
Member

The support added in #463 for consuming YCM via FetchContent_MakeAvailable had a bug, as FetchContent_MakeAvailable uses add_subdirectory under the hood to include a project, and add_subdirectory creates a new variable scope, so all variables set in it where not propagated to the context where FetchContent_MakeAvailable.

This PR fixes the issue by setting the used variable in the PARENT_SCOPE.

Verified

This commit was signed with the committer’s verified signature.
flaeppe Petter Friberg
@traversaro traversaro merged commit 35eede5 into master Nov 9, 2024
15 checks passed
@traversaro traversaro deleted the fixfetchcontent branch November 9, 2024 16:52
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.

None yet

1 participant