1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

cmLocalGenerator: De-duplicate StateSnapshot member

We have the member from the cmOutputConverter parent.
This commit is contained in:
Brad King
2021-05-14 14:16:53 -04:00
parent 24bfdbcffb
commit 013ec595c8
3 changed files with 3 additions and 4 deletions

View File

@@ -88,7 +88,6 @@ static auto ruleReplaceVars = { "CMAKE_${LANG}_COMPILER",
cmLocalGenerator::cmLocalGenerator(cmGlobalGenerator* gg, cmMakefile* makefile)
: cmOutputConverter(makefile->GetStateSnapshot())
, StateSnapshot(makefile->GetStateSnapshot())
, DirectoryBacktrace(makefile->GetBacktrace())
{
this->GlobalGenerator = gg;

View File

@@ -594,7 +594,6 @@ protected:
virtual bool CheckDefinition(std::string const& define) const;
cmMakefile* Makefile;
cmStateSnapshot StateSnapshot;
cmListFileBacktrace DirectoryBacktrace;
cmGlobalGenerator* GlobalGenerator;
std::map<std::string, std::string> UniqueObjectNamesMap;

View File

@@ -102,6 +102,9 @@ public:
};
static FortranPreprocess GetFortranPreprocess(cm::string_view value);
protected:
cmStateSnapshot StateSnapshot;
private:
cmState* GetState() const;
@@ -111,7 +114,5 @@ private:
static bool Shell_ArgumentNeedsQuotes(cm::string_view in, int flags);
static std::string Shell_GetArgument(cm::string_view in, int flags);
cmStateSnapshot StateSnapshot;
bool LinkScriptShell;
};