diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-11-16 07:46:50 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-01-10 19:41:13 +0100 |
commit | 533bf22864966e5b9a080ee3384625b062705e6a (patch) | |
tree | e9b44f195d12abb97c0ce683ae6ccfe83d6fa6c2 /cmake | |
parent | c293cbdf9e52dc7344d58cc7a863bdc2fabc424c (diff) | |
download | tigervnc-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.cmake | 10 |
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}) |