summaryrefslogtreecommitdiff
path: root/Tests/CTestUpdateCommon.cmake
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-07-28 00:43:04 +0200
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-07-28 00:43:04 +0200
commit7a649111cdea2b10f2ec57084416be619867fbfb (patch)
tree072e1343376835ba4dda7689db02dc51598e005b /Tests/CTestUpdateCommon.cmake
parent5d0d980d9949daf596e10715d686adc95c1c232b (diff)
downloadcmake-7a649111cdea2b10f2ec57084416be619867fbfb.tar.gz
Use string(APPEND) in Tests
Automate with: find Tests -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
Diffstat (limited to 'Tests/CTestUpdateCommon.cmake')
-rw-r--r--Tests/CTestUpdateCommon.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/Tests/CTestUpdateCommon.cmake b/Tests/CTestUpdateCommon.cmake
index 458e42743b..61aa13b949 100644
--- a/Tests/CTestUpdateCommon.cmake
+++ b/Tests/CTestUpdateCommon.cmake
@@ -84,9 +84,9 @@ function(check_updates build)
set(MSG "")
if(MISSING)
# List the missing entries
- set(MSG "${MSG}Update.xml is missing expected entries:\n")
+ string(APPEND MSG "Update.xml is missing expected entries:\n")
foreach(f ${MISSING})
- set(MSG "${MSG} ${f}\n")
+ string(APPEND MSG " ${f}\n")
endforeach()
else()
# Success
@@ -96,9 +96,9 @@ function(check_updates build)
# Report the result
if(EXTRA)
# List the extra entries
- set(MSG "${MSG}Update.xml has extra unexpected entries:\n")
+ string(APPEND MSG "Update.xml has extra unexpected entries:\n")
foreach(f ${EXTRA})
- set(MSG "${MSG} ${f}\n")
+ string(APPEND MSG " ${f}\n")
endforeach()
else()
# Success
@@ -112,9 +112,9 @@ function(check_updates build)
if(UPDATE_LOG_FILE)
file(READ ${UPDATE_LOG_FILE} UPDATE_LOG LIMIT ${max_update_xml_size})
string(REPLACE "\n" "\n " UPDATE_LOG "${UPDATE_LOG}")
- set(MSG "${MSG}Update log:\n ${UPDATE_LOG}")
+ string(APPEND MSG "Update log:\n ${UPDATE_LOG}")
else()
- set(MSG "${MSG}No update log found!")
+ string(APPEND MSG "No update log found!")
endif()
# Display the error message