Commit 70df365c authored by Greg Hale's avatar Greg Hale

changed foreach variable to match naming conventions and dropped intermediate…

changed foreach variable to match naming conventions and dropped intermediate variable, appending directly to the LIB_COMPONENTS list
parent f23b51de
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment