mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
Experimental: Avoid mutating statically allocated data
This commit is contained in:
@@ -2003,6 +2003,7 @@ void cmGlobalGenerator::ClearGeneratorMembers()
|
||||
this->GeneratedFiles.clear();
|
||||
this->RuntimeDependencySets.clear();
|
||||
this->RuntimeDependencySetsByName.clear();
|
||||
this->WarnedExperimental.clear();
|
||||
}
|
||||
|
||||
void cmGlobalGenerator::ComputeTargetObjectDirectory(
|
||||
@@ -3914,3 +3915,11 @@ void cmGlobalGenerator::AddCMakeFilesToRebuild(
|
||||
this->InstallScripts.end());
|
||||
files.insert(files.end(), this->TestFiles.begin(), this->TestFiles.end());
|
||||
}
|
||||
|
||||
bool cmGlobalGenerator::ShouldWarnExperimental(cm::string_view featureName,
|
||||
cm::string_view featureUuid)
|
||||
{
|
||||
return this->WarnedExperimental
|
||||
.emplace(cmStrCat(featureName, '-', featureUuid))
|
||||
.second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user