Commit d8fbd463 authored by Sergei Golubchik's avatar Sergei Golubchik

don't use deprecated <target>_LIB_DEPENDS. CMP0073

parent 9df99151
......@@ -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()
......
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