From d40909a98298a97d879ceeb3b29dcdc858e85628 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Fri, 8 Oct 2021 09:14:18 +0900 Subject: Imported Upstream version 3.16.0 --- Source/cmSourceGroup.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/cmSourceGroup.cxx') diff --git a/Source/cmSourceGroup.cxx b/Source/cmSourceGroup.cxx index 7e1e836a0..8c3ec9fec 100644 --- a/Source/cmSourceGroup.cxx +++ b/Source/cmSourceGroup.cxx @@ -4,6 +4,8 @@ #include +#include "cmStringAlgorithms.h" + class cmSourceGroupInternals { public: @@ -17,8 +19,7 @@ cmSourceGroup::cmSourceGroup(std::string name, const char* regex, this->Internal = new cmSourceGroupInternals; this->SetGroupRegex(regex); if (parentName) { - this->FullName = parentName; - this->FullName += "\\"; + this->FullName = cmStrCat(parentName, '\\'); } this->FullName += this->Name; } -- cgit v1.2.3