regex doesnt need to match full length of input, so only trying to match the leading -[lL]

This commit is contained in:
Greg Hale 2013-10-21 09:27:04 -04:00
parent fe3dd762a4
commit 387587f4f0

View File

@ -59,7 +59,7 @@ set(OpenCV_LIB_COMPONENTS ${OpenCV_LIB_COMPONENTS_})
if(OpenCV_EXTRA_COMPONENTS)
foreach(extra_component ${OpenCV_EXTRA_COMPONENTS})
if(extra_component MATCHES "^-[lL](.*)" OR extra_component MATCHES "[\\/]")
if(extra_component MATCHES "^-[lL]" OR extra_component MATCHES "[\\/]")
set(maybe_l_prefix "")
else()
set(maybe_l_prefix "-l")