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) ...@@ -323,11 +323,14 @@ MACRO(MERGE_LIBRARIES)
ENDMACRO() ENDMACRO()
FUNCTION(GET_DEPENDEND_OS_LIBS target result) FUNCTION(GET_DEPENDEND_OS_LIBS target result)
FOREACH(lib ${${target}_LIB_DEPENDS}) GET_TARGET_PROPERTY(DEPS ${target} LINK_LIBRARIES)
IF(DEPS)
FOREACH(lib ${DEPS})
IF(NOT TARGET ${lib}) IF(NOT TARGET ${lib})
SET(ret ${ret} ${lib}) SET(ret ${ret} ${lib})
ENDIF() ENDIF()
ENDFOREACH() ENDFOREACH()
ENDIF()
SET(${result} ${ret} PARENT_SCOPE) SET(${result} ${ret} PARENT_SCOPE)
ENDFUNCTION() 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