set(IPPVM "vm") # vector math\r
\r
\r
+set(IPP_X64 0)\r
+if (CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)\r
+ set(IPP_X64 1)\r
+endif()\r
+if (CMAKE_CL_64)\r
+ set(IPP_X64 1)\r
+endif()\r
+\r
# ------------------------------------------------------------------------\r
# This function detect IPP version by analyzing ippversion.h file\r
# Note, ippversion.h file was inroduced since IPP 5.3\r
set(IPPCV "cv") # computer vision\r
set(IPPVM "vm") # vector math\r
\r
- if (CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)\r
- set(IPP_ARCH "em64t")\r
- endif()\r
- \r
- if (CMAKE_CL_64)\r
+ if (IPP_X64)\r
set(IPP_ARCH "em64t")\r
endif()\r
\r
set(IPP_INCLUDE_DIRS ${IPP_ROOT_DIR}/include PARENT_SCOPE)\r
set(IPP_LIBRARY_DIRS ${IPP_ROOT_DIR}/lib PARENT_SCOPE)\r
\r
- if (CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)\r
+ if (IPP_X64)\r
if(NOT EXISTS ${IPP_ROOT_DIR}/../em64t)\r
message(SEND_ERROR "IPP EM64T libraries not found")\r
endif()\r
# set INCLUDE and LIB folders\r
set(IPP_INCLUDE_DIRS ${IPP_ROOT_DIR}/include PARENT_SCOPE)\r
\r
- if (CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)\r
+ if (IPP_X64)\r
if(NOT EXISTS ${IPP_ROOT_DIR}/lib/intel64)\r
message(SEND_ERROR "IPP EM64T libraries not found")\r
endif()\r