changed foreach variable to match naming conventions and dropped intermediate variable, appending directly to the LIB_COMPONENTS list
This commit is contained in:
parent
f23b51de6f
commit
70df365c87
@ -57,11 +57,9 @@ endforeach()
|
|||||||
# add extra dependencies required for OpenCV
|
# add extra dependencies required for OpenCV
|
||||||
set(OpenCV_LIB_COMPONENTS ${OpenCV_LIB_COMPONENTS_})
|
set(OpenCV_LIB_COMPONENTS ${OpenCV_LIB_COMPONENTS_})
|
||||||
if(OpenCV_EXTRA_COMPONENTS)
|
if(OpenCV_EXTRA_COMPONENTS)
|
||||||
set(OpenCV_DASH_L_EXTRA_COMPONENTS "")
|
foreach(extra_component ${OpenCV_EXTRA_COMPONENTS})
|
||||||
foreach(ExtraComponent ${OpenCV_EXTRA_COMPONENTS})
|
set(OpenCV_LIB_COMPONENTS "${OpenCV_LIB_COMPONENTS} -l${extra_component}")
|
||||||
set(OpenCV_DASH_L_EXTRA_COMPONENTS "${OpenCV_DASH_L_EXTRA_COMPONENTS} -l${ExtraComponent}")
|
|
||||||
endforeach()
|
endforeach()
|
||||||
set(OpenCV_LIB_COMPONENTS "${OpenCV_LIB_COMPONENTS} ${OpenCV_DASH_L_EXTRA_COMPONENTS}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#generate the .pc file
|
#generate the .pc file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user