diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-06 21:51:33 +0200 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-14 18:17:05 +0200 |
commit | 5bd48ac5348885e15ebb23ea825a1ea777985b97 (patch) | |
tree | 340ac037fe081ef314cb12ecdfca2b229c2f4ea8 /Tests/CTestUpdateCommon.cmake | |
parent | 2622bc3f65162bf6d6cb5838da6999f8b5ca75cf (diff) | |
download | cmake-5bd48ac5348885e15ebb23ea825a1ea777985b97.tar.gz |
Replace string(REGEX REPLACE) with string(REPLACE) where possible
The simple replacement is much faster.
Diffstat (limited to 'Tests/CTestUpdateCommon.cmake')
-rw-r--r-- | Tests/CTestUpdateCommon.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CTestUpdateCommon.cmake b/Tests/CTestUpdateCommon.cmake index 642a618962..857c6f5680 100644 --- a/Tests/CTestUpdateCommon.cmake +++ b/Tests/CTestUpdateCommon.cmake @@ -9,7 +9,7 @@ function(run_child) ERROR_STRIP_TRAILING_WHITESPACE ) if(FAILED) - string(REGEX REPLACE "\n" "\n " OUTPUT "${OUTPUT}") + string(REPLACE "\n" "\n " OUTPUT "${OUTPUT}") message(FATAL_ERROR "Child failed (${FAILED}), output is\n ${OUTPUT}\n" "Command = [${ARGN}]\n") endif() @@ -108,7 +108,7 @@ function(check_updates build) ${TOP}/${build}/Testing/Temporary/LastUpdate*.log) if(UPDATE_LOG_FILE) file(READ ${UPDATE_LOG_FILE} UPDATE_LOG LIMIT ${max_update_xml_size}) - string(REGEX REPLACE "\n" "\n " UPDATE_LOG "${UPDATE_LOG}") + string(REPLACE "\n" "\n " UPDATE_LOG "${UPDATE_LOG}") set(MSG "${MSG}Update log:\n ${UPDATE_LOG}") else() set(MSG "${MSG}No update log found!") |