@ -143,10 +143,25 @@ macro(ipp_detect_version)
list ( APPEND IPP_LIBRARIES ${ IPP_LIBRARY_DIR } / ${ IPP_LIB_PREFIX } ${ IPP_PREFIX } ${ name } ${ IPP_SUFFIX } ${ IPP_LIB_SUFFIX } )
list ( APPEND IPP_LIBRARIES ${ IPP_LIBRARY_DIR } / ${ IPP_LIB_PREFIX } ${ IPP_PREFIX } ${ name } ${ IPP_SUFFIX } ${ IPP_LIB_SUFFIX } )
else ( )
else ( )
add_library ( ipp ${ name } STATIC IMPORTED )
add_library ( ipp ${ name } STATIC IMPORTED )
set ( _filename "${IPP_LIB_PREFIX}${IPP_PREFIX}${name}${IPP_SUFFIX}${IPP_LIB_SUFFIX}" )
set_target_properties ( ipp ${ name } PROPERTIES
set_target_properties ( ipp ${ name } PROPERTIES
I M P O R T E D _ L I N K _ I N T E R F A C E _ L I B R A R I E S " "
I M P O R T E D _ L I N K _ I N T E R F A C E _ L I B R A R I E S " "
I M P O R T E D _ L O C A T I O N $ { I P P _ L I B R A R Y _ D I R } / $ { I P P _ L I B _ P R E F I X } $ { I P P _ P R E F I X } $ { n a m e } $ { I P P _ S U F F I X } $ { I P P _ L I B _ S U F F I X }
I M P O R T E D _ L O C A T I O N $ { I P P _ L I B R A R Y _ D I R } / $ { _ f i l e n a m e }
)
)
if ( "${name}" STREQUAL "core" ) # h t t p s : / / g i t h u b . c o m / o p e n c v / o p e n c v / p u l l / 1 9 6 8 1
if ( OPENCV_FORCE_IPP_EXCLUDE_LIBS OR OPENCV_FORCE_IPP_EXCLUDE_LIBS_CORE
OR ( UNIX AND NOT ANDROID AND NOT APPLE
AND ( CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
)
A N D N O T O P E N C V _ S K I P _ I P P _ E X C L U D E _ L I B S _ C O R E
)
if ( CMAKE_VERSION VERSION_LESS "3.13.0" )
set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--exclude-libs,${_filename} ${CMAKE_SHARED_LINKER_FLAGS}" )
else ( )
target_link_options ( ipp ${ name } INTERFACE "LINKER:--exclude-libs,${_filename}" )
endif ( )
endif ( )
endif ( )
list ( APPEND IPP_LIBRARIES ipp ${ name } )
list ( APPEND IPP_LIBRARIES ipp ${ name } )
if ( NOT BUILD_SHARED_LIBS AND ( HAVE_IPP_ICV OR ";${OPENCV_INSTALL_EXTERNAL_DEPENDENCIES};" MATCHES ";ipp;" ) )
if ( NOT BUILD_SHARED_LIBS AND ( HAVE_IPP_ICV OR ";${OPENCV_INSTALL_EXTERNAL_DEPENDENCIES};" MATCHES ";ipp;" ) )
# C M a k e d o e s n ' t s u p p o r t " install ( TARGETS ${ IPP_PREFIX } ${ name } " command with imported targets
# C M a k e d o e s n ' t s u p p o r t " install ( TARGETS ${ IPP_PREFIX } ${ name } " command with imported targets