Fixed compilation with IPP on Linux. Added linking with Intel compiler runtime libraries.
This commit is contained in:
parent
e0d991cf46
commit
01a980aa9e
@ -163,9 +163,16 @@ function(set_ipp_new_libraries _LATEST_VERSION)
|
|||||||
${IPP_LIB_PREFIX}${IPP_PREFIX}${IPPCV}${IPP_SUFFIX}${IPP_LIB_SUFFIX}
|
${IPP_LIB_PREFIX}${IPP_PREFIX}${IPPCV}${IPP_SUFFIX}${IPP_LIB_SUFFIX}
|
||||||
${IPP_LIB_PREFIX}${IPP_PREFIX}${IPPI}${IPP_SUFFIX}${IPP_LIB_SUFFIX}
|
${IPP_LIB_PREFIX}${IPP_PREFIX}${IPPI}${IPP_SUFFIX}${IPP_LIB_SUFFIX}
|
||||||
${IPP_LIB_PREFIX}${IPP_PREFIX}${IPPS}${IPP_SUFFIX}${IPP_LIB_SUFFIX}
|
${IPP_LIB_PREFIX}${IPP_PREFIX}${IPPS}${IPP_SUFFIX}${IPP_LIB_SUFFIX}
|
||||||
${IPP_LIB_PREFIX}${IPP_PREFIX}${IPPCORE}${IPP_SUFFIX}${IPP_LIB_SUFFIX}
|
${IPP_LIB_PREFIX}${IPP_PREFIX}${IPPCORE}${IPP_SUFFIX}${IPP_LIB_SUFFIX})
|
||||||
PARENT_SCOPE)
|
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
set(IPP_LIBRARIES
|
||||||
|
${IPP_LIBRARIES}
|
||||||
|
${IPP_LIB_PREFIX}irc${CMAKE_SHARED_LIBRARY_SUFFIX}
|
||||||
|
${IPP_LIB_PREFIX}imf${CMAKE_SHARED_LIBRARY_SUFFIX}
|
||||||
|
${IPP_LIB_PREFIX}svml${CMAKE_SHARED_LIBRARY_SUFFIX})
|
||||||
|
endif()
|
||||||
|
set(IPP_LIBRARIES ${IPP_LIBRARIES} PARENT_SCOPE)
|
||||||
return()
|
return()
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
@ -208,19 +215,39 @@ function(set_ipp_variables _LATEST_VERSION)
|
|||||||
set(IPP_INCLUDE_DIRS ${IPP_ROOT_DIR}/include PARENT_SCOPE)
|
set(IPP_INCLUDE_DIRS ${IPP_ROOT_DIR}/include PARENT_SCOPE)
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(IPP_LIBRARY_DIRS ${IPP_ROOT_DIR}/lib PARENT_SCOPE)
|
set(IPP_LIBRARY_DIRS ${IPP_ROOT_DIR}/lib)
|
||||||
elseif (IPP_X64)
|
elseif (IPP_X64)
|
||||||
if(NOT EXISTS ${IPP_ROOT_DIR}/lib/intel64)
|
if(NOT EXISTS ${IPP_ROOT_DIR}/lib/intel64)
|
||||||
message(SEND_ERROR "IPP EM64T libraries not found")
|
message(SEND_ERROR "IPP EM64T libraries not found")
|
||||||
endif()
|
endif()
|
||||||
set(IPP_LIBRARY_DIRS ${IPP_ROOT_DIR}/lib/intel64 PARENT_SCOPE)
|
set(IPP_LIBRARY_DIRS ${IPP_ROOT_DIR}/lib/intel64)
|
||||||
else()
|
else()
|
||||||
if(NOT EXISTS ${IPP_ROOT_DIR}/lib/ia32)
|
if(NOT EXISTS ${IPP_ROOT_DIR}/lib/ia32)
|
||||||
message(SEND_ERROR "IPP IA32 libraries not found")
|
message(SEND_ERROR "IPP IA32 libraries not found")
|
||||||
endif()
|
endif()
|
||||||
set(IPP_LIBRARY_DIRS ${IPP_ROOT_DIR}/lib/ia32 PARENT_SCOPE)
|
set(IPP_LIBRARY_DIRS ${IPP_ROOT_DIR}/lib/ia32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
get_filename_component(INTEL_COMPILER_LIBRARY_DIR ${IPP_ROOT_DIR}/../lib REALPATH)
|
||||||
|
if (IPP_X64)
|
||||||
|
if(NOT EXISTS ${INTEL_COMPILER_LIBRARY_DIR}/intel64)
|
||||||
|
message(SEND_ERROR "Intel compiler EM64T libraries not found")
|
||||||
|
endif()
|
||||||
|
set(IPP_LIBRARY_DIRS
|
||||||
|
${IPP_LIBRARY_DIRS}
|
||||||
|
${INTEL_COMPILER_LIBRARY_DIR}/intel64)
|
||||||
|
else()
|
||||||
|
if(NOT EXISTS ${INTEL_COMPILER_LIBRARY_DIR}/ia32)
|
||||||
|
message(SEND_ERROR "Intel compiler IA32 libraries not found")
|
||||||
|
endif()
|
||||||
|
set(IPP_LIBRARY_DIRS
|
||||||
|
${IPP_LIBRARY_DIRS}
|
||||||
|
${INTEL_COMPILER_LIBRARY_DIR}/ia32)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
set(IPP_LIBRARY_DIRS ${IPP_LIBRARY_DIRS} PARENT_SCOPE)
|
||||||
|
|
||||||
# set IPP_LIBRARIES variable (7.x or 8.x lib names)
|
# set IPP_LIBRARIES variable (7.x or 8.x lib names)
|
||||||
set_ipp_new_libraries(${_LATEST_VERSION})
|
set_ipp_new_libraries(${_LATEST_VERSION})
|
||||||
set(IPP_LIBRARIES ${IPP_LIBRARIES} PARENT_SCOPE)
|
set(IPP_LIBRARIES ${IPP_LIBRARIES} PARENT_SCOPE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user