summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-14 14:55:27 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-14 15:41:29 +0200
commitdca566348816d75e7d3330ae6a8385626cc54c98 (patch)
tree9e7c172b21e6900b8218d348d44ea317ab737bdc
parentf639188b4d3e71303ebc2c64e387fa5585fce467 (diff)
downloadtde-cmake-dca566348816d75e7d3330ae6a8385626cc54c98.tar.gz
tde-cmake-dca566348816d75e7d3330ae6a8385626cc54c98.zip
Set the LINK_INTERFACE_LIBRARIES and INTERFACE_LINK_LIBRARIES
properties not only for the default, but also for the specific build type. This resolve FTBFS when using private linking if the build is of type Debug. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e769cc000347ea6c27d14eb1e92c1c1f40e84d74)
-rw-r--r--modules/TDEMacros.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 500ebdf..510c96b 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