fix "non target" warning for "world" build
This commit is contained in:
parent
80bd67c36b
commit
f11ed4b91d
@ -795,10 +795,14 @@ macro(ocv_get_all_libs _modules _extra _3rdparty)
|
|||||||
set(${_extra} "")
|
set(${_extra} "")
|
||||||
set(${_3rdparty} "")
|
set(${_3rdparty} "")
|
||||||
foreach(m ${OPENCV_MODULES_PUBLIC})
|
foreach(m ${OPENCV_MODULES_PUBLIC})
|
||||||
|
if(TARGET ${m})
|
||||||
get_target_property(deps ${m} INTERFACE_LINK_LIBRARIES)
|
get_target_property(deps ${m} INTERFACE_LINK_LIBRARIES)
|
||||||
if(NOT deps)
|
if(NOT deps)
|
||||||
set(deps "")
|
set(deps "")
|
||||||
endif()
|
endif()
|
||||||
|
else()
|
||||||
|
set(deps "")
|
||||||
|
endif()
|
||||||
list(INSERT ${_modules} 0 ${deps} ${m})
|
list(INSERT ${_modules} 0 ${deps} ${m})
|
||||||
foreach (dep ${deps} ${OPENCV_LINKER_LIBS})
|
foreach (dep ${deps} ${OPENCV_LINKER_LIBS})
|
||||||
if (NOT DEFINED OPENCV_MODULE_${dep}_LOCATION)
|
if (NOT DEFINED OPENCV_MODULE_${dep}_LOCATION)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user