summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0037/WARN-cond-package-stderr.txt
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 /Tests/RunCMake/CMP0037/WARN-cond-package-stderr.txt
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 'Tests/RunCMake/CMP0037/WARN-cond-package-stderr.txt')
-rw-r--r--Tests/RunCMake/CMP0037/WARN-cond-package-stderr.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0037/WARN-cond-package-stderr.txt b/Tests/RunCMake/CMP0037/WARN-cond-package-stderr.txt
new file mode 100644
index 0000000..5960e51
--- /dev/null
+++ b/Tests/RunCMake/CMP0037/WARN-cond-package-stderr.txt
@@ -0,0 +1,11 @@
+^CMake Warning \(dev\) at WARN-cond-package.cmake:4 \(add_custom_target\):
+ Policy CMP0037 is not set: Target names should not be reserved and should
+ match a validity pattern. Run "cmake --help-policy CMP0037" for policy
+ details. Use the cmake_policy command to set the policy and suppress this
+ warning.
+
+ The target name "package" is reserved when CPack packaging is enabled. It
+ may result in undefined behavior.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)
+This warning is for project developers. Use -Wno-dev to suppress it.$