summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/File_Generate
diff options
context:
space:
mode:
authorJosef Angstenberger <code@jtxa.de>2020-08-09 13:44:58 (GMT)
committerBrad King <brad.king@kitware.com>2020-08-19 13:05:53 (GMT)
commit1977f7833b222c0e5b2fa09ad1ac2f85cf9416ea (patch)
tree52df5dbe965cc3b6f9c2c06ebf7d0cce26ea2ac2 /Tests/RunCMake/File_Generate
parent04fbd7566a67a773d17901b9bb3a9979efd3cdb4 (diff)
downloadCMake-1977f7833b222c0e5b2fa09ad1ac2f85cf9416ea.zip
CMake-1977f7833b222c0e5b2fa09ad1ac2f85cf9416ea.tar.gz
CMake-1977f7833b222c0e5b2fa09ad1ac2f85cf9416ea.tar.bz2
file(GENERATE): Update existing tests
Add the additional CMP0070 warning as expected stderr. The warning occurs twice because the output file name is evaluated multiple times.
Diffstat (limited to 'Tests/RunCMake/File_Generate')
-rw-r--r--Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt16
1 files changed, 15 insertions, 1 deletions
diff --git a/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt b/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt
index dbabaa9..a7a231b 100644
--- a/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt
+++ b/Tests/RunCMake/File_Generate/CMP0070-WARN-stderr.txt
@@ -1,4 +1,18 @@
-^CMake Warning \(dev\) in CMakeLists.txt:
+^(CMake Warning \(dev\) in CMakeLists.txt:
+ Policy CMP0070 is not set: Define file\(GENERATE\) behavior for relative
+ paths. Run "cmake --help-policy CMP0070" for policy details. Use the
+ cmake_policy command to set the policy and suppress this warning.
+
+ file\(GENERATE\) given relative OUTPUT path:
+
+ relative-output-WARN.txt
+
+ This is not defined behavior unless CMP0070 is set to NEW. For
+ compatibility with older versions of CMake, the previous undefined behavior
+ will be used.
+This warning is for project developers. Use -Wno-dev to suppress it.
++)+
+CMake Warning \(dev\) in CMakeLists.txt:
Policy CMP0070 is not set: Define file\(GENERATE\) behavior for relative
paths. Run "cmake --help-policy CMP0070" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.