From 587796341b6e74d55fa95ca06d00e61c80be7cb2 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 (cherry picked from commit e769cc000347ea6c27d14eb1e92c1c1f40e84d74) --- modules/TDEMacros.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index fae7f3e..4cbab12 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1019,9 +1019,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