From: Greg Hale Date: Tue, 15 Oct 2013 18:54:58 +0000 (-0400) Subject: changed foreach variable to match naming conventions and dropped intermediate variabl... X-Git-Tag: accepted/tizen/ivi/20140515.103456~1^2~363^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70df365c87e0d2eb220f1b0214fb8c2618e3661c;p=profile%2Fivi%2Fopencv.git changed foreach variable to match naming conventions and dropped intermediate variable, appending directly to the LIB_COMPONENTS list --- diff --git a/cmake/OpenCVGenPkgconfig.cmake b/cmake/OpenCVGenPkgconfig.cmake index 24e9ab5..ecd7c68 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