diff options
author | Brad King <brad.king@kitware.com> | 2017-10-26 18:01:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-30 14:21:31 (GMT) |
commit | ae5f40696ef6efc62b663457b72184f682a23fe2 (patch) | |
tree | 4cc03a0f0d2bcb4db26b27b5a59ffec77edfa848 /Tests/RunCMake/CMP0037/RunCMakeTest.cmake | |
parent | 409527a03ced550fbc295faf965aebc7b8dbe003 (diff) | |
download | CMake-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 'Tests/RunCMake/CMP0037/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/CMP0037/RunCMakeTest.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0037/RunCMakeTest.cmake b/Tests/RunCMake/CMP0037/RunCMakeTest.cmake index 04c1b52..98274f0 100644 --- a/Tests/RunCMake/CMP0037/RunCMakeTest.cmake +++ b/Tests/RunCMake/CMP0037/RunCMakeTest.cmake @@ -12,3 +12,19 @@ endif() run_cmake(CMP0037-WARN-reserved) run_cmake(CMP0037-OLD-reserved) run_cmake(CMP0037-NEW-reserved) + +run_cmake(NEW-cond) +run_cmake(NEW-cond-test) +run_cmake(NEW-cond-package) +run_cmake(OLD-cond) +run_cmake(OLD-cond-test) +run_cmake(OLD-cond-package) +run_cmake(WARN-cond) +run_cmake(WARN-cond-test) +run_cmake(WARN-cond-package) + +if(RunCMake_GENERATOR MATCHES "Make|Ninja") + run_cmake(NEW-cond-package_source) + run_cmake(OLD-cond-package_source) + run_cmake(WARN-cond-package_source) +endif() |