Skip to content

Commit

Permalink
Merge pull request opencv#4134 from alalek:fix_get_target_property
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Jun 18, 2015
2 parents 2bc16e8 + f11ed4b commit 11ca4e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/OpenCVUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 11ca4e6

Please sign in to comment.