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 -1
View File
@@ -9,6 +9,7 @@
#include "cmArgumentParser.h"
#include "cmExecutionStatus.h"
#include "cmList.h"
#include "cmMakefile.h"
#include "cmRange.h"
#include "cmStringAlgorithms.h"
@@ -159,7 +160,7 @@ bool cmSeparateArgumentsCommand(std::vector<std::string> const& args,
pos += 2;
}
});
auto value = cmJoin(values, ";");
auto value = cmList::to_string(values);
status.GetMakefile().AddDefinition(var, value);
return true;