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.
This commit is contained in:
Josef Angstenberger
2020-08-09 15:44:58 +02:00
committed by Brad King
parent 04fbd7566a
commit 1977f7833b

View File

@@ -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.