summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt
diff options
context:
space:
mode:
authorJosef Angstenberger <code@jtxa.de>2020-08-09 16:48:58 (GMT)
committerBrad King <brad.king@kitware.com>2020-08-19 13:05:53 (GMT)
commit462b6d83e8c1113296ae52202ab664508f7865a7 (patch)
tree49df312449a6713599a6c77e5b2c2ac1c3722185 /Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt
parent1977f7833b222c0e5b2fa09ad1ac2f85cf9416ea (diff)
downloadCMake-462b6d83e8c1113296ae52202ab664508f7865a7.zip
CMake-462b6d83e8c1113296ae52202ab664508f7865a7.tar.gz
CMake-462b6d83e8c1113296ae52202ab664508f7865a7.tar.bz2
file(GENERATE): Test source properties
Output files get the source property `GENERATED` which is indirectly checked by adding them to a library. For a missing file that is not generated CMake will abort. With the new behavior according CMP0070 relative files are generated into the binary directory.
Diffstat (limited to 'Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt')
-rw-r--r--Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt b/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt
new file mode 100644
index 0000000..fcb53a7
--- /dev/null
+++ b/Tests/RunCMake/File_Generate/SourceProperty-CMP0070-OLD-stderr.txt
@@ -0,0 +1,23 @@
+^CMake Deprecation Warning at SourceProperty-CMP0070-OLD.cmake:[0-9]+ \(cmake_policy\):
+ The OLD behavior for policy CMP0070 will be removed from a future version
+ of CMake.
+
+ The cmake-policies\(7\) manual explains that the OLD behaviors of all
+ policies are deprecated and that a policy should be set to OLD only under
+ specific short-term circumstances. Projects should be ported to the NEW
+ behavior and not rely on setting a policy to OLD.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:[0-9]+ \(include\)
+
+
+CMake Error at SourceProperty-CMP0070-OLD.cmake:[0-9]+ \(add_library\):
+ Cannot find source file:
+
+.*\/relative-output-OLD\.c
+
+ Tried extensions \.c \.C.*
+Call Stack \(most recent call first\):
+ CMakeLists.txt:[0-9]+ \(include\)
+
+
+CMake Generate step failed. Build files cannot be regenerated correctly.$