diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-07-06 04:03:43 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-08-12 11:37:42 +0200 |
commit | 96b8909062c0b4df654f11057905b1e31398f88f (patch) | |
tree | f5b191ef5c9447edb61c5db0a2a848ad335b1c78 /cmake/libutils.cmake | |
parent | aa19eda7dac2f91da76fa1783fe4bb860e59fd94 (diff) | |
download | mariadb-git-96b8909062c0b4df654f11057905b1e31398f88f.tar.gz |
MDEV-16662 CMake warnings: CMP0022
Diffstat (limited to 'cmake/libutils.cmake')
-rw-r--r-- | cmake/libutils.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake index a31fe0d4510..621f6ecb535 100644 --- a/cmake/libutils.cmake +++ b/cmake/libutils.cmake @@ -269,7 +269,7 @@ MACRO(MERGE_LIBRARIES) IF (ARG_SOVERSION) SET_TARGET_PROPERTIES(${TARGET} PROPERTIES SOVERSION ${ARG_VERSION}) ENDIF() - TARGET_LINK_LIBRARIES(${TARGET} ${LIBS}) + TARGET_LINK_LIBRARIES(${TARGET} LINK_PRIVATE ${LIBS}) IF(ARG_OUTPUT_NAME) SET_TARGET_PROPERTIES(${TARGET} PROPERTIES OUTPUT_NAME "${ARG_OUTPUT_NAME}") ENDIF() @@ -282,7 +282,6 @@ MACRO(MERGE_LIBRARIES) ENDIF() MYSQL_INSTALL_TARGETS(${TARGET} DESTINATION "${INSTALL_LIBDIR}" ${COMP}) ENDIF() - SET_TARGET_PROPERTIES(${TARGET} PROPERTIES LINK_INTERFACE_LIBRARIES "") IF(ARG_SHARED AND LINK_FLAG_NO_UNDEFINED) # Do not allow undefined symbols in shared libraries GET_TARGET_PROPERTY(TARGET_LINK_FLAGS ${TARGET} LINK_FLAGS) |