summaryrefslogtreecommitdiff
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-04-06 21:51:33 +0200
committerRolf Eike Beer <eike@sf-mail.de>2014-04-14 18:17:05 +0200
commit5bd48ac5348885e15ebb23ea825a1ea777985b97 (patch)
tree340ac037fe081ef314cb12ecdfca2b229c2f4ea8 /Tests/CMakeTests
parent2622bc3f65162bf6d6cb5838da6999f8b5ca75cf (diff)
downloadcmake-5bd48ac5348885e15ebb23ea825a1ea777985b97.tar.gz
Replace string(REGEX REPLACE) with string(REPLACE) where possible
The simple replacement is much faster.
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/CheckCMakeTest.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeTests/CheckCMakeTest.cmake b/Tests/CMakeTests/CheckCMakeTest.cmake
index 7be7b30f06..1565394bc2 100644
--- a/Tests/CMakeTests/CheckCMakeTest.cmake
+++ b/Tests/CMakeTests/CheckCMakeTest.cmake
@@ -9,8 +9,8 @@ function(check_cmake_test_single prefix test testfile)
ERROR_VARIABLE stderr
RESULT_VARIABLE result
)
- string(REGEX REPLACE "\n" "\n out> " out " out> ${stdout}")
- string(REGEX REPLACE "\n" "\n err> " err " err> ${stderr}")
+ string(REPLACE "\n" "\n out> " out " out> ${stdout}")
+ string(REPLACE "\n" "\n err> " err " err> ${stderr}")
if(NOT "${result}" STREQUAL "${${test}-RESULT}")
message(FATAL_ERROR
"Test ${test} result is [${result}], not [${${test}-RESULT}].\n"