diff options
author | Leonid Pospelov <pospelovlm@yandex.ru> | 2019-04-22 21:54:05 (GMT) |
---|---|---|
committer | Leonid Pospelov <pospelovlm@yandex.ru> | 2019-04-22 21:54:05 (GMT) |
commit | 615fb2633cd6f4e7543eb172e10f32f09cad6d88 (patch) | |
tree | 3d4ba2ba7cada1edbc10469707c37838a45917c2 /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 30c98db61be3e0079305514b98b2d3d07b6877cc (diff) | |
download | CMake-615fb2633cd6f4e7543eb172e10f32f09cad6d88.zip CMake-615fb2633cd6f4e7543eb172e10f32f09cad6d88.tar.gz CMake-615fb2633cd6f4e7543eb172e10f32f09cad6d88.tar.bz2 |
cmGlobalVisualStudioGenerator: use cmJoin to join the filenames
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 12 |
1 files changed, 1 insertions, 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<std::string> filenames; this->GetFilesReplacedDuringGenerate(filenames); if (!filenames.empty()) { - // Convert vector to semi-colon delimited string of filenames: - std::string projects; - std::vector<std::string>::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()); |