summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetProperties
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-13 20:56:54 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-13 20:56:54 (GMT)
commite9b237b6d765ef38f4c149bef1efcde40447f0f3 (patch)
tree402c0829eca88b1785f5c22336119fce97697148 /Tests/RunCMake/TargetProperties
parenta20d9e1463eaa8df1c11fcc244d324f2344e21f5 (diff)
downloadCMake-e9b237b6d765ef38f4c149bef1efcde40447f0f3.zip
CMake-e9b237b6d765ef38f4c149bef1efcde40447f0f3.tar.gz
CMake-e9b237b6d765ef38f4c149bef1efcde40447f0f3.tar.bz2
Help: Document formatting of DEPRECATION target property
Also add a test case to verify it.
Diffstat (limited to 'Tests/RunCMake/TargetProperties')
-rw-r--r--Tests/RunCMake/TargetProperties/Deprecation-stderr.txt6
-rw-r--r--Tests/RunCMake/TargetProperties/Deprecation.cmake5
2 files changed, 9 insertions, 2 deletions
diff --git a/Tests/RunCMake/TargetProperties/Deprecation-stderr.txt b/Tests/RunCMake/TargetProperties/Deprecation-stderr.txt
index 11a4cd8..9e0d1ce 100644
--- a/Tests/RunCMake/TargetProperties/Deprecation-stderr.txt
+++ b/Tests/RunCMake/TargetProperties/Deprecation-stderr.txt
@@ -2,7 +2,11 @@
The library that is being linked to, testLibDeprecation, is marked as being
deprecated by the owner\. The message provided by the developer is:
- Deprecated version\. Please use latest version
+ Deprecated version:
+
+ This is a long line of preformatted text that would otherwise wrap to multiple lines\.
+
+ Please use latest version\.
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)
diff --git a/Tests/RunCMake/TargetProperties/Deprecation.cmake b/Tests/RunCMake/TargetProperties/Deprecation.cmake
index 9361273..ff7c3db 100644
--- a/Tests/RunCMake/TargetProperties/Deprecation.cmake
+++ b/Tests/RunCMake/TargetProperties/Deprecation.cmake
@@ -1,5 +1,8 @@
add_library(testLibDeprecation STATIC empty.cpp)
-set_property(TARGET testLibDeprecation PROPERTY DEPRECATION "Deprecated version. Please use latest version")
+set_property(TARGET testLibDeprecation PROPERTY DEPRECATION
+ "Deprecated version:
+ This is a long line of preformatted text that would otherwise wrap to multiple lines.
+Please use latest version.")
add_executable(testExe1 empty.cpp)
target_link_libraries(testExe1 testLibDeprecation)