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/fetchcontent populate deprecated #1

Closed
wants to merge 9 commits into from

Conversation

Avus-c
Copy link
Owner

@Avus-c Avus-c commented Jul 18, 2024

No description provided.

Avus-c and others added 9 commits July 11, 2024 18:42
The single argument signature for FetchContent_Populate is deprecated with CMake 3.30.
It was used, in order to call add_subdirectory manually with the EXCLUDE_FROM_ALL and SYSTEM flags.
These have been added to FetchContent_Declare with 3.25 and 3.28.
Calling FetchContent_MakeAvailable will internally call add_subdirectory with EXCLUDE_FROM_ALL and SYSTEM.
There is therefore no need to call this manually.
where previously parsed in cpm_add_subdirectory which is not called
on the new code path.
For CMake version <3.28 this is done by calling add_subdirectory manually.
For newer version FetchContent_Declare/MakeAvailable handles this for us.
this replicates the old behaviour
@Avus-c Avus-c closed this Sep 25, 2024
@Avus-c Avus-c deleted the fix/fetchcontent_populate-deprecated branch September 25, 2024 10:35
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