diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-09-17 16:04:21 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-10-24 11:15:51 +0200 |
commit | d8fbd463a0458727bd2c9f29e75600aadc89ac58 (patch) | |
tree | 8179ee832026f7d46ae70a1ad3780df3c9131e48 | |
parent | 9df99151dae05574cf21e7787ffd4fe988a66d77 (diff) | |
download | mariadb-git-d8fbd463a0458727bd2c9f29e75600aadc89ac58.tar.gz |
don't use deprecated <target>_LIB_DEPENDS. CMP0073
-rw-r--r-- | cmake/libutils.cmake | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake index 92a5b9f564d..37f9cf196af 100644 --- a/cmake/libutils.cmake +++ b/cmake/libutils.cmake @@ -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() |