From 70df365c87e0d2eb220f1b0214fb8c2618e3661c Mon Sep 17 00:00:00 2001 From: Greg Hale Date: Tue, 15 Oct 2013 14:54:58 -0400 Subject: [PATCH] changed foreach variable to match naming conventions and dropped intermediate variable, appending directly to the LIB_COMPONENTS list --- cmake/OpenCVGenPkgconfig.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmake/OpenCVGenPkgconfig.cmake b/cmake/OpenCVGenPkgconfig.cmake index 24e9ab55b3..ecd7c68f14 100644 --- a/cmake/OpenCVGenPkgconfig.cmake +++ b/cmake/OpenCVGenPkgconfig.cmake @@ -57,11 +57,9 @@ endforeach() # add extra dependencies required for OpenCV set(OpenCV_LIB_COMPONENTS ${OpenCV_LIB_COMPONENTS_}) if(OpenCV_EXTRA_COMPONENTS) - set(OpenCV_DASH_L_EXTRA_COMPONENTS "") - foreach(ExtraComponent ${OpenCV_EXTRA_COMPONENTS}) - set(OpenCV_DASH_L_EXTRA_COMPONENTS "${OpenCV_DASH_L_EXTRA_COMPONENTS} -l${ExtraComponent}") + foreach(extra_component ${OpenCV_EXTRA_COMPONENTS}) + set(OpenCV_LIB_COMPONENTS "${OpenCV_LIB_COMPONENTS} -l${extra_component}") endforeach() - set(OpenCV_LIB_COMPONENTS "${OpenCV_LIB_COMPONENTS} ${OpenCV_DASH_L_EXTRA_COMPONENTS}") endif() #generate the .pc file