From 387587f4f0515d0564c0d79e1d20e7a0fce6c67b Mon Sep 17 00:00:00 2001 From: Greg Hale Date: Mon, 21 Oct 2013 09:27:04 -0400 Subject: [PATCH] regex doesnt need to match full length of input, so only trying to match the leading -[lL] --- cmake/OpenCVGenPkgconfig.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVGenPkgconfig.cmake b/cmake/OpenCVGenPkgconfig.cmake index 8b02d5b2b..a36b70e94 100644 --- a/cmake/OpenCVGenPkgconfig.cmake +++ b/cmake/OpenCVGenPkgconfig.cmake @@ -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")