summaryrefslogtreecommitdiff
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-04 15:31:48 +0000
committerKitware Robot <kwrobot@kitware.com>2019-04-04 11:32:41 -0400
commit0dfb056cd3fa655ddf3cabb6b3ce0309b3037ca1 (patch)
treefd8400e0a09cae8292235c0479392cbfb82168b2 /Source/cmProjectCommand.cxx
parent7795b3f2bfe3dbab35a494ceee37745eaff110f4 (diff)
parent076118694995c19de7637156322818f3994de76a (diff)
downloadcmake-0dfb056cd3fa655ddf3cabb6b3ce0309b3037ca1.tar.gz
Merge topic 'pr.projectbefore'
0761186949 project: Add variable CMAKE_PROJECT_INCLUDE_BEFORE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3175
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 116502618a..8615ecc8d8 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);