summaryrefslogtreecommitdiff
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorRuslan Baratov <ruslan_baratov@yahoo.com>2019-03-28 22:43:40 +0300
committerRuslan Baratov <ruslan_baratov@yahoo.com>2019-04-01 20:30:19 +0300
commit076118694995c19de7637156322818f3994de76a (patch)
tree232852f10182ebbc3773e7ee122c058dd8ff7aa1 /Source/cmProjectCommand.cxx
parent3e129d71bc12a325c0548aaaea24470cd172470b (diff)
downloadcmake-076118694995c19de7637156322818f3994de76a.tar.gz
project: Add variable CMAKE_PROJECT_INCLUDE_BEFORE
Diffstat (limited to 'Source/cmProjectCommand.cxx')
-rw-r--r--Source/cmProjectCommand.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx
index de5d1edefb..0bf63d4f6e 100644
--- a/Source/cmProjectCommand.cxx
+++ b/Source/cmProjectCommand.cxx
@@ -25,6 +25,10 @@ bool cmProjectCommand::InitialPass(std::vector<std::string> const& args,
return false;
}
+ if (!this->IncludeByVariable("CMAKE_PROJECT_INCLUDE_BEFORE")) {
+ return false;
+ }
+
std::string const& projectName = args[0];
this->Makefile->SetProjectName(projectName);