summaryrefslogtreecommitdiffstats
path: root/Modules/GetPrerequisites.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2010-06-24 17:14:55 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2010-06-24 17:15:00 (GMT)
commit9306f1beee8fdd23c2c8e2ada6917b026c8f57f9 (patch)
tree4361949e665e673b049038bcb71eeaf06d5547bd /Modules/GetPrerequisites.cmake
parente6f8a863682eaa8635ed1afe6acdc67591e32746 (diff)
downloadCMake-9306f1beee8fdd23c2c8e2ada6917b026c8f57f9.zip
CMake-9306f1beee8fdd23c2c8e2ada6917b026c8f57f9.tar.gz
CMake-9306f1beee8fdd23c2c8e2ada6917b026c8f57f9.tar.bz2
Fix regression in 5e6634fd77969433a87c150a2fb3f2079131484f for Windows.
Diffstat (limited to 'Modules/GetPrerequisites.cmake')
-rw-r--r--Modules/GetPrerequisites.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index d450322..f984c58 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -637,11 +637,11 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
if("${candidate}" MATCHES "${gp_regex}")
# Extract information from each candidate:
- if(gp_regex_error AND "${candidate}" MATCHES ${gp_regex_error})
+ if(gp_regex_error AND "${candidate}" MATCHES "${gp_regex_error}")
string(REGEX REPLACE "${gp_regex_fallback}" "\\1" raw_item "${candidate}")
- else(gp_regex_error AND "${candidate}" MATCHES ${gp_regex_error})
+ else(gp_regex_error AND "${candidate}" MATCHES "${gp_regex_error}")
string(REGEX REPLACE "${gp_regex}" "\\1" raw_item "${candidate}")
- endif(gp_regex_error AND "${candidate}" MATCHES ${gp_regex_error})
+ endif(gp_regex_error AND "${candidate}" MATCHES "${gp_regex_error}")
if(gp_regex_cmp_count GREATER 1)
string(REGEX REPLACE "${gp_regex}" "\\2" raw_compat_version "${candidate}")