diff options
author | Brad King <brad.king@kitware.com> | 2019-04-04 15:31:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-04-04 15:32:41 (GMT) |
commit | 0dfb056cd3fa655ddf3cabb6b3ce0309b3037ca1 (patch) | |
tree | fd8400e0a09cae8292235c0479392cbfb82168b2 /Source/cmProjectCommand.cxx | |
parent | 7795b3f2bfe3dbab35a494ceee37745eaff110f4 (diff) | |
parent | 076118694995c19de7637156322818f3994de76a (diff) | |
download | CMake-0dfb056cd3fa655ddf3cabb6b3ce0309b3037ca1.zip CMake-0dfb056cd3fa655ddf3cabb6b3ce0309b3037ca1.tar.gz CMake-0dfb056cd3fa655ddf3cabb6b3ce0309b3037ca1.tar.bz2 |
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.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx index 1165026..8615ecc 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); |