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/WARN-cond-test.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/WARN-cond-test.cmake')
-rw-r--r-- | Tests/RunCMake/CMP0037/WARN-cond-test.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0037/WARN-cond-test.cmake b/Tests/RunCMake/CMP0037/WARN-cond-test.cmake new file mode 100644 index 0000000..982af36 --- /dev/null +++ b/Tests/RunCMake/CMP0037/WARN-cond-test.cmake @@ -0,0 +1,5 @@ + +enable_testing() +add_custom_target(test) +add_custom_target(package) +add_custom_target(package_source) |