Skip to content

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.

@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.

1 participant