提交 11ca4e61 编写于 作者: M Maksim Shabunin

Merge pull request #4134 from alalek:fix_get_target_property

......@@ -795,8 +795,12 @@ macro(ocv_get_all_libs _modules _extra _3rdparty)
set(${_extra} "")
set(${_3rdparty} "")
foreach(m ${OPENCV_MODULES_PUBLIC})
get_target_property(deps ${m} INTERFACE_LINK_LIBRARIES)
if(NOT deps)
if(TARGET ${m})
get_target_property(deps ${m} INTERFACE_LINK_LIBRARIES)
if(NOT deps)
set(deps "")
endif()
else()
set(deps "")
endif()
list(INSERT ${_modules} 0 ${deps} ${m})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册