aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-11-16 07:46:50 +0100
committerPierre Ossman <ossman@cendio.se>2023-01-10 19:41:13 +0100
commit533bf22864966e5b9a080ee3384625b062705e6a (patch)
treee9b44f195d12abb97c0ce683ae6ccfe83d6fa6c2 /cmake
parentc293cbdf9e52dc7344d58cc7a863bdc2fabc424c (diff)
downloadtigervnc-533bf22864966e5b9a080ee3384625b062705e6a.tar.gz
tigervnc-533bf22864966e5b9a080ee3384625b062705e6a.zip
Get target libraries from INTERFACE_LINK_LIBRARIES
<target>_LIB_DEPENDS is an internal variable that contains lots of other weird stuff.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/CMakeMacroLibtoolFile.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake
index 9dfc6136..be336d51 100644
--- a/cmake/Modules/CMakeMacroLibtoolFile.cmake
+++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake
@@ -9,14 +9,16 @@ macro(libtool_create_control_file _target)
endif()
#
- # Parse the target_LIB_DEPENDS variable to determine which libraries to put
- # into libtool control file as library dependencies, and handle a few corner
- # cases.
+ # Parse the INTERFACE_LINK_LIBRARIES property to determine which
+ # libraries to put into libtool control file as library dependencies,
+ # and handle a few corner cases.
#
# First we need to split up any internal entries
set(target_libs "")
- foreach(library ${${_target}_LIB_DEPENDS})
+ get_property(_target_libs TARGET ${_target}
+ PROPERTY INTERFACE_LINK_LIBRARIES)
+ foreach(library ${_target_libs})
if("${library}" MATCHES " ")
string(REPLACE " " ";" lib_list "${library}")
list(APPEND target_libs ${lib_list})