summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-07-24 17:10:14 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-24 17:14:10 (GMT)
commit6646771b0f4f6ec71a5717a68f74c987eb399b4e (patch)
tree63d2716322e633af0133f30c7fbb97060ec7d4ea /Source/cmMakefile.cxx
parent08eb157c032487b2793e625c554caae33267116d (diff)
downloadCMake-6646771b0f4f6ec71a5717a68f74c987eb399b4e.zip
CMake-6646771b0f4f6ec71a5717a68f74c987eb399b4e.tar.gz
CMake-6646771b0f4f6ec71a5717a68f74c987eb399b4e.tar.bz2
project: Do not issue CMP0048 warnings on injected call
Fixes: #18202
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 3c7a4cf..af97f80 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1511,6 +1511,8 @@ void cmMakefile::Configure()
project.Name.Lower = "project";
project.Arguments.emplace_back("Project", cmListFileArgument::Unquoted,
0);
+ project.Arguments.emplace_back("__CMAKE_INJECTED_PROJECT_COMMAND__",
+ cmListFileArgument::Unquoted, 0);
listFile.Functions.insert(listFile.Functions.begin(), project);
}
}