summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-09-07 10:02:34 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-09-09 07:44:55 (GMT)
commit95b17c89be15a768178d66f42573d90852a1b986 (patch)
tree1a1ba0421359be0d7cc58c7a9b2eb95e46a1a776
parenta451995fc6485929bc606986572eee162d6fc4e4 (diff)
downloadCMake-95b17c89be15a768178d66f42573d90852a1b986.zip
CMake-95b17c89be15a768178d66f42573d90852a1b986.tar.gz
CMake-95b17c89be15a768178d66f42573d90852a1b986.tar.bz2
Use cmMakefile::GetOrCreateSourceGroup in cmQtAutogeneratorsInitializer
-rw-r--r--Source/cmQtAutoGeneratorInitializer.cxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx
index 22ac9d2..1b6020f 100644
--- a/Source/cmQtAutoGeneratorInitializer.cxx
+++ b/Source/cmQtAutoGeneratorInitializer.cxx
@@ -237,20 +237,7 @@ static bool AddToSourceGroup(cmMakefile* makefile, const std::string& fileName,
}
// Generate a source group on demand
if (!groupName.empty()) {
- {
- const char* delimiter =
- makefile->GetDefinition("SOURCE_GROUP_DELIMITER");
- if (delimiter == nullptr) {
- delimiter = "\\";
- }
- std::vector<std::string> folders =
- cmSystemTools::tokenize(groupName, delimiter);
- sourceGroup = makefile->GetSourceGroup(folders);
- if (sourceGroup == nullptr) {
- makefile->AddSourceGroup(folders);
- sourceGroup = makefile->GetSourceGroup(folders);
- }
- }
+ sourceGroup = makefile->GetOrCreateSourceGroup(groupName);
if (sourceGroup == nullptr) {
std::ostringstream ost;
ost << cmQtAutoGen::GeneratorNameUpper(genType);