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(NOT TARGET ${lib}) IF(DEPS)
SET(ret ${ret} ${lib}) FOREACH(lib ${DEPS})
ENDIF() IF(NOT TARGET ${lib})
ENDFOREACH() SET(ret ${ret} ${lib})
ENDIF()
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