diff options
author | Brad King <brad.king@kitware.com> | 2015-05-05 13:35:23 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-05-05 13:35:23 (GMT) |
commit | 82a55ff9163879beacc41e3462e54a2cb72f9f2c (patch) | |
tree | ad56d1bc7457ec09c51f9b1c135baddfa58802f7 /Source | |
parent | 01c67f524e143a7f4287da4176dd94cec9d0ea71 (diff) | |
parent | 42142d4fd2455f3c792283ba9c261c3756a10d8a (diff) | |
download | CMake-82a55ff9163879beacc41e3462e54a2cb72f9f2c.zip CMake-82a55ff9163879beacc41e3462e54a2cb72f9f2c.tar.gz CMake-82a55ff9163879beacc41e3462e54a2cb72f9f2c.tar.bz2 |
Merge topic 'refactor-cmMakefile-constructor'
42142d4f cmMakefile: Inline Intialize method in constructor
f39f0c0a cmMakefile: Initialize SuppressWatches member before use
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMakefile.cxx | 11 | ||||
-rw-r--r-- | Source/cmMakefile.h | 1 |
2 files changed, 3 insertions, 9 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 7b3ca53..de1cf07 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -178,6 +178,9 @@ cmMakefile::cmMakefile(cmLocalGenerator* localGenerator) this->WarnUnused = false; this->CheckSystemVars = false; + this->GeneratingBuildSystem = false; + this->SuppressWatches = false; + // Setup the default include file regular expression (match everything). this->IncludeFileRegularExpression = "^.*$"; // Setup the default include complaint regular expression (match nothing). @@ -212,15 +215,7 @@ cmMakefile::cmMakefile(cmLocalGenerator* localGenerator) this->LocalGenerator = localGenerator; this->AddDefaultDefinitions(); - this->Initialize(); - this->GeneratingBuildSystem = false; - this->SuppressWatches = false; -} - -//---------------------------------------------------------------------------- -void cmMakefile::Initialize() -{ this->cmDefineRegex.compile("#cmakedefine[ \t]+([A-Za-z_0-9]*)"); this->cmDefine01Regex.compile("#cmakedefine01[ \t]+([A-Za-z_0-9]*)"); this->cmAtVarRegex.compile("(@[A-Za-z_0-9/.+-]+@)"); diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index ad098ef..99f2544 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -919,7 +919,6 @@ protected: private: cmMakefile(const cmMakefile& mf); cmMakefile& operator=(const cmMakefile& mf); - void Initialize(); cmState::Snapshot StateSnapshot; |