summaryrefslogtreecommitdiffstats
path: root/Modules/CTest.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2013-06-02 19:42:10 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2013-06-02 20:18:19 (GMT)
commitcd4451d1e738a729a1a8d0ed34b544cada1de078 (patch)
tree099468fd2b338fd193ccf9dd5c1701245d3e1a1f /Modules/CTest.cmake
parenta4d8c64d10105fd4448ffde6a5d2fb74c1bb4f57 (diff)
downloadCMake-cd4451d1e738a729a1a8d0ed34b544cada1de078.zip
CMake-cd4451d1e738a729a1a8d0ed34b544cada1de078.tar.gz
CMake-cd4451d1e738a729a1a8d0ed34b544cada1de078.tar.bz2
replace string(... MATCHES "^const$) with string(... STREQUAL "const")
Diffstat (limited to 'Modules/CTest.cmake')
-rw-r--r--Modules/CTest.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake
index 562e248..5cd62f6 100644
--- a/Modules/CTest.cmake
+++ b/Modules/CTest.cmake
@@ -84,13 +84,13 @@ if(BUILD_TESTING)
endmacro()
macro(SET_IF_SET var val)
- if(NOT "${val}" MATCHES "^$")
+ if(NOT "${val}" STREQUAL "")
set("${var}" "${val}")
endif()
endmacro()
macro(SET_IF_SET_AND_NOT_SET var val)
- if(NOT "${val}" MATCHES "^$")
+ if(NOT "${val}" STREQUAL "")
SET_IF_NOT_SET("${var}" "${val}")
endif()
endmacro()