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 e769cc0003)
v3.5.13-sru
Slávek Banko 5 years ago
parent fd16e820bf
commit 587796341b
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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

Loading…
Cancel
Save