From 076118694995c19de7637156322818f3994de76a Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Thu, 28 Mar 2019 22:43:40 +0300 Subject: project: Add variable CMAKE_PROJECT_INCLUDE_BEFORE --- Source/cmProjectCommand.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/cmProjectCommand.cxx') 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 const& args, return false; } + if (!this->IncludeByVariable("CMAKE_PROJECT_INCLUDE_BEFORE")) { + return false; + } + std::string const& projectName = args[0]; this->Makefile->SetProjectName(projectName); -- cgit v1.2.1