fix "non target" warning for "world" build

This commit is contained in:
Alexander Alekhin 2015-06-17 20:07:56 +03:00
parent 80bd67c36b
commit f11ed4b91d

View File

@ -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})