Commit f11ed4b9 authored by Alexander Alekhin's avatar Alexander Alekhin

fix "non target" warning for "world" build

parent 80bd67c3
...@@ -795,8 +795,12 @@ macro(ocv_get_all_libs _modules _extra _3rdparty) ...@@ -795,8 +795,12 @@ 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})
get_target_property(deps ${m} INTERFACE_LINK_LIBRARIES) if(TARGET ${m})
if(NOT deps) get_target_property(deps ${m} INTERFACE_LINK_LIBRARIES)
if(NOT deps)
set(deps "")
endif()
else()
set(deps "") set(deps "")
endif() endif()
list(INSERT ${_modules} 0 ${deps} ${m}) list(INSERT ${_modules} 0 ${deps} ${m})
......
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