summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-26 18:01:51 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-30 14:21:31 (GMT)
commitae5f40696ef6efc62b663457b72184f682a23fe2 (patch)
tree4cc03a0f0d2bcb4db26b27b5a59ffec77edfa848 /Source/cmGlobalGenerator.h
parent409527a03ced550fbc295faf965aebc7b8dbe003 (diff)
downloadCMake-ae5f40696ef6efc62b663457b72184f682a23fe2.zip
CMake-ae5f40696ef6efc62b663457b72184f682a23fe2.tar.gz
CMake-ae5f40696ef6efc62b663457b72184f682a23fe2.tar.bz2
CMP0037: Allow test and package targets when features are not enabled
When CMake will not generate a test, package, or package_source target, allow projects to create their own targets with these names. Fixes: #16062
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index c5a5297..8fcb533 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -568,6 +568,9 @@ private:
void ClearGeneratorMembers();
+ bool CheckCMP0037(std::string const& targetName,
+ std::string const& reason) const;
+
void IndexMakefile(cmMakefile* mf);
virtual const char* GetBuildIgnoreErrorsFlag() const { return nullptr; }