mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
don't use deprecated <target>_LIB_DEPENDS. CMP0073
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user