From 615fb2633cd6f4e7543eb172e10f32f09cad6d88 Mon Sep 17 00:00:00 2001 From: Leonid Pospelov Date: Tue, 23 Apr 2019 00:54:05 +0300 Subject: cmGlobalVisualStudioGenerator: use cmJoin to join the filenames --- Source/cmGlobalVisualStudioGenerator.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index aa70522..d457cc3 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -318,17 +318,7 @@ void cmGlobalVisualStudioGenerator::CallVisualStudioMacro( std::vector filenames; this->GetFilesReplacedDuringGenerate(filenames); if (!filenames.empty()) { - // Convert vector to semi-colon delimited string of filenames: - std::string projects; - std::vector::iterator it = filenames.begin(); - if (it != filenames.end()) { - projects = *it; - ++it; - } - for (; it != filenames.end(); ++it) { - projects += ";"; - projects += *it; - } + std::string projects = cmJoin(filenames, ";"); cmCallVisualStudioMacro::CallMacro( topLevelSlnName, CMAKE_VSMACROS_RELOAD_MACRONAME, projects, this->GetCMakeInstance()->GetDebugOutput()); -- cgit v0.12