mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
Use cmMakefile::GetOrCreateSourceGroup in cmQtAutogeneratorsInitializer
This commit is contained in:
1 parent
a451995fc6
commit
95b17c89be
1 file changed
+1
-14
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user