cmList: Add container conversion to string

This commit is contained in:
Marc Chevrier
2023-06-20 16:32:27 +02:00
parent 88e7ad0084
commit 45f17e5a85
34 changed files with 161 additions and 99 deletions
+2 -2
View File
@@ -1119,8 +1119,8 @@ int cmCPackGenerator::DoPackage()
// Run post-build actions
cmValue postBuildScripts = this->GetOption("CPACK_POST_BUILD_SCRIPTS");
if (postBuildScripts) {
this->MakefileMap->AddDefinition("CPACK_PACKAGE_FILES",
cmJoin(this->packageFileNames, ";"));
this->MakefileMap->AddDefinition(
"CPACK_PACKAGE_FILES", cmList::to_string(this->packageFileNames));
const cmList scripts{ postBuildScripts };
for (const auto& script : scripts) {