Skip to content
Permalink
Browse files
don't use deprecated <target>_LIB_DEPENDS. CMP0073
  • Loading branch information
vuvova committed Oct 24, 2020
1 parent 9df9915 commit d8fbd46
Showing 1 changed file with 8 additions and 5 deletions.
@@ -323,11 +323,14 @@ MACRO(MERGE_LIBRARIES)
ENDMACRO()

FUNCTION(GET_DEPENDEND_OS_LIBS target result)
FOREACH(lib ${${target}_LIB_DEPENDS})
IF(NOT TARGET ${lib})
SET(ret ${ret} ${lib})
ENDIF()
ENDFOREACH()
GET_TARGET_PROPERTY(DEPS ${target} LINK_LIBRARIES)
IF(DEPS)
FOREACH(lib ${DEPS})
IF(NOT TARGET ${lib})
SET(ret ${ret} ${lib})
ENDIF()
ENDFOREACH()
ENDIF()
SET(${result} ${ret} PARENT_SCOPE)
ENDFUNCTION()

0 comments on commit d8fbd46

Please sign in to comment.