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

Where is the populated parameter defined in line 915 of the code? #653

Open
xzxzhao2013 opened this issue Mar 6, 2025 · 2 comments
Open

Comments

@xzxzhao2013
Copy link

cpm_fetch_package("${CPM_ARGS_NAME}" ${DOWNLOAD_ONLY} populated ${CPM_ARGS_UNPARSED_ARGUMENTS})

I didn't find the definition of "populated"

@Avus-c
Copy link
Contributor

Avus-c commented Mar 6, 2025

Yeah it's a weird section of the code.

here, populated is just a string that gets passed as the 3rd argument.
cpm_fetch_package uses the string and sets a variable named after that string.
the populated variable is used a few lines after the call cpm_fetch_populated to.

Basically we are telling cpm_fetch_package what name the variable should have it's defining.
Could probably be refactored to be clearer : )

@xzxzhao2013
Copy link
Author

Thank you very much, I understand

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

No branches or pull requests

2 participants