diff options
author | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2019-03-28 19:43:40 (GMT) |
---|---|---|
committer | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2019-04-01 17:30:19 (GMT) |
commit | 076118694995c19de7637156322818f3994de76a (patch) | |
tree | 232852f10182ebbc3773e7ee122c058dd8ff7aa1 /Source/cmProjectCommand.cxx | |
parent | 3e129d71bc12a325c0548aaaea24470cd172470b (diff) | |
download | CMake-076118694995c19de7637156322818f3994de76a.zip CMake-076118694995c19de7637156322818f3994de76a.tar.gz CMake-076118694995c19de7637156322818f3994de76a.tar.bz2 |
project: Add variable CMAKE_PROJECT_INCLUDE_BEFORE
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 de5d1ed..0bf63d4 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); |