Added export of CPM_LAST_PACKAGE_NAME (#403)

This commit is contained in:
Craig Hutchinson
2022-09-28 20:39:31 +01:00
committed by GitHub
parent f00ccd89c4
commit 03705fcce1
7 changed files with 18 additions and 0 deletions

View File

@@ -808,6 +808,10 @@ macro(cpm_export_variables name)
"${${name}_ADDED}"
PARENT_SCOPE
)
set(CPM_LAST_PACKAGE_NAME
"${name}"
PARENT_SCOPE
)
endmacro()
# declares a package, so that any call to CPMAddPackage for the package name will use these