Commit f346d88d authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmMakefile: Avoid invoking EnforceDirectoryLevelRules.

This is part of the CMP0000 implementation and only needs to be invoked
for top-level buildsystem files currently.
parent b6614031
...@@ -1106,6 +1106,7 @@ void cmGlobalGenerator::Configure() ...@@ -1106,6 +1106,7 @@ void cmGlobalGenerator::Configure()
// now do it // now do it
lg->GetMakefile()->Configure(); lg->GetMakefile()->Configure();
lg->GetMakefile()->EnforceDirectoryLevelRules();
// update the cache entry for the number of local generators, this is used // update the cache entry for the number of local generators, this is used
// for progress // for progress
......
...@@ -445,7 +445,6 @@ bool cmMakefile::ProcessBuildsystemFile(const char* filename) ...@@ -445,7 +445,6 @@ bool cmMakefile::ProcessBuildsystemFile(const char* filename)
{ {
scope.Quiet(); scope.Quiet();
} }
this->EnforceDirectoryLevelRules();
return true; return true;
} }
......
...@@ -825,6 +825,8 @@ public: ...@@ -825,6 +825,8 @@ public:
std::string GetExecutionFilePath() const; std::string GetExecutionFilePath() const;
void EnforceDirectoryLevelRules() const;
protected: protected:
// add link libraries and directories to the target // add link libraries and directories to the target
void AddGlobalLinkInformation(const std::string& name, cmTarget& target); void AddGlobalLinkInformation(const std::string& name, cmTarget& target);
...@@ -975,9 +977,6 @@ private: ...@@ -975,9 +977,6 @@ private:
cmPolicies::PolicyStatus cmPolicies::PolicyStatus
GetPolicyStatusInternal(cmPolicies::PolicyID id) const; GetPolicyStatusInternal(cmPolicies::PolicyID id) const;
// Enforce rules about CMakeLists.txt files.
void EnforceDirectoryLevelRules() const;
// CMP0053 == old // CMP0053 == old
cmake::MessageType ExpandVariablesInStringOld( cmake::MessageType ExpandVariablesInStringOld(
std::string& errorstr, std::string& errorstr,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment