From 9306f1beee8fdd23c2c8e2ada6917b026c8f57f9 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Thu, 24 Jun 2010 11:14:55 -0600 Subject: [PATCH] Fix regression in 5e6634fd77969433a87c150a2fb3f2079131484f for Windows. --- Modules/GetPrerequisites.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake index d450322cd..f984c589f 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}")