summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioSlnData.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmVisualStudioSlnData.cxx')
-rw-r--r--Source/cmVisualStudioSlnData.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmVisualStudioSlnData.cxx b/Source/cmVisualStudioSlnData.cxx
index 4b6754e..f685158 100644
--- a/Source/cmVisualStudioSlnData.cxx
+++ b/Source/cmVisualStudioSlnData.cxx
@@ -5,6 +5,7 @@
#include <cstddef>
#include <utility>
+#include "cmStringAlgorithms.h"
#include "cmSystemTools.h"
void cmSlnProjectEntry::AddProjectConfiguration(
@@ -72,7 +73,8 @@ std::string cmSlnData::GetConfigurationTarget(
const std::string& projectName, const std::string& solutionConfiguration,
const std::string& platformName)
{
- std::string solutionTarget = solutionConfiguration + "|" + platformName;
+ std::string solutionTarget =
+ cmStrCat(solutionConfiguration, '|', platformName);
cm::optional<cmSlnProjectEntry> project = GetProjectByName(projectName);
if (!project) {
return platformName;