summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2020-05-31 20:58:42 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-05 12:56:32 (GMT)
commita6e1b20bab6ab7566a887d43f50c35c112c62b3d (patch)
treef2ec3fa0f121b00ab1a7ee05a7d5afd15bc36d01 /Source/CPack
parent21218f5c1277ff840e1a7b6128af3b2abe0d35d3 (diff)
downloadCMake-a6e1b20bab6ab7566a887d43f50c35c112c62b3d.zip
CMake-a6e1b20bab6ab7566a887d43f50c35c112c62b3d.tar.gz
CMake-a6e1b20bab6ab7566a887d43f50c35c112c62b3d.tar.bz2
CPack External: Introduce `CPACK_EXTERNAL_BUILT_PACKAGES`
The `CPACK_EXTERNAL_PACKAGE_SCRIPT` script may set this list variable to the full paths of generated package files. CPack copy these files from the stage directory back to the top build directory and possibly produce checksum files if the `CPACK_PACKAGE_CHECKSUM` is set.
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cmCPackExternalGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackExternalGenerator.cxx b/Source/CPack/cmCPackExternalGenerator.cxx
index 11e1aec..53be4fe 100644
--- a/Source/CPack/cmCPackExternalGenerator.cxx
+++ b/Source/CPack/cmCPackExternalGenerator.cxx
@@ -75,6 +75,12 @@ int cmCPackExternalGenerator::PackageFiles()
if (cmSystemTools::GetErrorOccuredFlag() || !res) {
return 0;
}
+
+ const char* builtPackagesStr =
+ this->GetOption("CPACK_EXTERNAL_BUILT_PACKAGES");
+ if (builtPackagesStr) {
+ cmExpandList(builtPackagesStr, this->packageFileNames, false);
+ }
}
return 1;