summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalData.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/ExternalData.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/ExternalData.cmake')
-rw-r--r--Modules/ExternalData.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalData.cmake b/Modules/ExternalData.cmake
index 8332725..50669bd 100644
--- a/Modules/ExternalData.cmake
+++ b/Modules/ExternalData.cmake
@@ -391,7 +391,7 @@ function(_ExternalData_arg target arg options var_file)
# Regular expression to match associated files.
string(REGEX REPLACE "^REGEX:" "" regex "${opt}")
list(APPEND associated_regex "${regex}")
- elseif("x${opt}" MATCHES "^x:$")
+ elseif(opt STREQUAL ":")
# Activate series matching.
set(series_option "${opt}")
elseif("x${opt}" MATCHES "^[^][:/*?]+$")