summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-06-20 14:32:27 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-06-22 13:44:17 (GMT)
commit45f17e5a8566fcdec0071a5ed1bc2656968bf258 (patch)
treed7391fbaa4ab69666ced6dd940892c5c401bcfca /Source/cmMacroCommand.cxx
parent88e7ad0084bd6a2fa6f032d7be1ee5d993440dcf (diff)
downloadCMake-45f17e5a8566fcdec0071a5ed1bc2656968bf258.zip
CMake-45f17e5a8566fcdec0071a5ed1bc2656968bf258.tar.gz
CMake-45f17e5a8566fcdec0071a5ed1bc2656968bf258.tar.bz2
cmList: Add container conversion to string
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r--Source/cmMacroCommand.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index 47ad749..3d7cd8b 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -12,6 +12,7 @@
#include "cmExecutionStatus.h"
#include "cmFunctionBlocker.h"
+#include "cmList.h"
#include "cmListFileCache.h"
#include "cmMakefile.h"
#include "cmPolicies.h"
@@ -66,8 +67,9 @@ bool cmMacroHelperCommand::operator()(
std::string argcDef = std::to_string(expandedArgs.size());
auto eit = expandedArgs.begin() + (this->Args.size() - 1);
- std::string expandedArgn = cmJoin(cmMakeRange(eit, expandedArgs.end()), ";");
- std::string expandedArgv = cmJoin(expandedArgs, ";");
+ std::string expandedArgn =
+ cmList::to_string(cmMakeRange(eit, expandedArgs.end()));
+ std::string expandedArgv = cmList::to_string(expandedArgs);
std::vector<std::string> variables;
variables.reserve(this->Args.size() - 1);
for (unsigned int j = 1; j < this->Args.size(); ++j) {