From e769cc000347ea6c27d14eb1e92c1c1f40e84d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 14 Jun 2020 14:55:27 +0200 Subject: [PATCH] Set the LINK_INTERFACE_LIBRARIES and INTERFACE_LINK_LIBRARIES properties not only for the default, but also for the specific build type. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This resolve FTBFS when using private linking if the build is of type Debug. Signed-off-by: Slávek Banko --- modules/TDEMacros.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 7f5a30f..8ec1bcf 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1072,9 +1072,12 @@ macro( tde_add_library _arg_target ) endif( _embed AND ${CMAKE_VERSION} VERSION_EQUAL "2.8.12.0" ) endif( ) if( _shared_libs ) + string( TOUPPER ${CMAKE_BUILD_TYPE} _build_type ) set_target_properties( ${_target} PROPERTIES LINK_INTERFACE_LIBRARIES "${_shared_libs}" - INTERFACE_LINK_LIBRARIES "${_shared_libs}" ) + LINK_INTERFACE_LIBRARIES_${_build_type} "${_shared_libs}" + INTERFACE_LINK_LIBRARIES "${_shared_libs}" + INTERFACE_LINK_LIBRARIES_${_build_type} "${_shared_libs}" ) endif( _shared_libs ) # set dependencies