regex doesnt need to match full length of input, so only trying to match the leading...
authorGreg Hale <imalsogreg@gmail.com>
Mon, 21 Oct 2013 13:27:04 +0000 (09:27 -0400)
committerGreg Hale <imalsogreg@gmail.com>
Mon, 21 Oct 2013 13:27:04 +0000 (09:27 -0400)
cmake/OpenCVGenPkgconfig.cmake

index 8b02d5b..a36b70e 100644 (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")