@@ -35,7 +35,7 @@ unset(IPP_VERSION_MINOR)
35
35
unset (IPP_VERSION_BUILD )
36
36
37
37
if (X86 AND UNIX AND NOT APPLE AND NOT ANDROID AND BUILD_SHARED_LIBS )
38
- message (STATUS "On 32-bit Linux IPP can not currently be used with dynamic libs because of linker errors. Set BUILD_SHARED_LIBS=OFF" )
38
+ message (STATUS "On 32-bit Linux Intel IPP can not currently be used with dynamic libs because of linker errors. Set BUILD_SHARED_LIBS=OFF" )
39
39
return ()
40
40
endif ()
41
41
@@ -47,14 +47,14 @@ if(CMAKE_CL_64)
47
47
set (IPP_X64 1 )
48
48
endif ()
49
49
50
- # This function detects IPP version by analyzing .h file
50
+ # This function detects Intel IPP version by analyzing .h file
51
51
macro (ipp_get_version VERSION_FILE )
52
52
unset (_VERSION_STR )
53
53
unset (_MAJOR )
54
54
unset (_MINOR )
55
55
unset (_BUILD )
56
56
57
- # read IPP version info from file
57
+ # read Intel IPP version info from file
58
58
file (STRINGS ${VERSION_FILE} STR1 REGEX "IPP_VERSION_MAJOR" )
59
59
file (STRINGS ${VERSION_FILE} STR2 REGEX "IPP_VERSION_MINOR" )
60
60
file (STRINGS ${VERSION_FILE} STR3 REGEX "IPP_VERSION_BUILD" )
@@ -96,29 +96,29 @@ macro(ipp_detect_version)
96
96
elseif (EXISTS ${IPP_ROOT_DIR} /include/ipp.h )
97
97
# nothing
98
98
else ()
99
- _ipp_not_supported ("Can't resolve IPP directory: ${IPP_ROOT_DIR} " )
99
+ _ipp_not_supported ("Can't resolve Intel IPP directory: ${IPP_ROOT_DIR} " )
100
100
endif ()
101
101
102
102
ipp_get_version (${IPP_INCLUDE_DIRS} /ippversion.h )
103
103
ocv_assert (IPP_VERSION_STR VERSION_GREATER "1.0" )
104
104
105
- message (STATUS "found IPP${__msg} : ${_MAJOR} .${_MINOR} .${_BUILD} [${IPP_VERSION_STR} ]" )
105
+ message (STATUS "found Intel IPP${__msg} : ${_MAJOR} .${_MINOR} .${_BUILD} [${IPP_VERSION_STR} ]" )
106
106
message (STATUS "at: ${IPP_ROOT_DIR} " )
107
107
108
108
if (${IPP_VERSION_STR} VERSION_LESS "7.0" )
109
- _ipp_not_supported ("IPP ${IPP_VERSION_STR} is not supported" )
109
+ _ipp_not_supported ("Intel IPP ${IPP_VERSION_STR} is not supported" )
110
110
endif ()
111
111
112
112
set (HAVE_IPP 1 )
113
113
114
114
macro (_ipp_set_library_dir DIR )
115
115
if (NOT EXISTS ${DIR} )
116
- _ipp_not_supported ("IPP library directory not found" )
116
+ _ipp_not_supported ("Intel IPP library directory not found" )
117
117
endif ()
118
118
set (IPP_LIBRARY_DIR ${DIR} )
119
119
endmacro ()
120
120
121
- if (APPLE )
121
+ if (APPLE AND NOT HAVE_IPP_ICV_ONLY )
122
122
_ipp_set_library_dir (${IPP_ROOT_DIR} /lib )
123
123
elseif (IPP_X64 )
124
124
_ipp_set_library_dir (${IPP_ROOT_DIR} /lib/intel64 )
@@ -127,7 +127,7 @@ macro(ipp_detect_version)
127
127
endif ()
128
128
129
129
macro (_ipp_add_library name )
130
- # dynamic linking is only supported for standalone version of IPP
130
+ # dynamic linking is only supported for standalone version of Intel IPP
131
131
if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV_ONLY )
132
132
if (WIN32 )
133
133
set (IPP_LIB_PREFIX ${CMAKE_IMPORT_LIBRARY_PREFIX} )
@@ -142,7 +142,7 @@ macro(ipp_detect_version)
142
142
endif ()
143
143
if (EXISTS ${IPP_LIBRARY_DIR} /${IPP_LIB_PREFIX}${IPP_PREFIX}${name}${IPP_SUFFIX}${IPP_LIB_SUFFIX} )
144
144
if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV_ONLY )
145
- # When using dynamic libraries from standalone IPP it is your responsibility to install those on the target system
145
+ # When using dynamic libraries from standalone Intel IPP it is your responsibility to install those on the target system
146
146
list (APPEND IPP_LIBRARIES ${IPP_LIBRARY_DIR} /${IPP_LIB_PREFIX}${IPP_PREFIX}${name}${IPP_SUFFIX}${IPP_LIB_SUFFIX} )
147
147
else ()
148
148
add_library (ipp${name} STATIC IMPORTED )
@@ -161,33 +161,32 @@ macro(ipp_detect_version)
161
161
endif ()
162
162
endif ()
163
163
else ()
164
- message (STATUS "Can't find IPP library: ${name} at ${IPP_LIBRARY_DIR} /${IPP_LIB_PREFIX}${IPP_PREFIX}${name}${IPP_SUFFIX}${IPP_LIB_SUFFIX} " )
164
+ message (STATUS "Can't find Intel IPP library: ${name} at ${IPP_LIBRARY_DIR} /${IPP_LIB_PREFIX}${IPP_PREFIX}${name}${IPP_SUFFIX}${IPP_LIB_SUFFIX} " )
165
165
endif ()
166
166
endmacro ()
167
167
168
168
set (IPP_PREFIX "ipp" )
169
169
if (${IPP_VERSION_STR} VERSION_LESS "8.0" )
170
170
if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV_ONLY )
171
- set (IPP_SUFFIX "" ) # dynamic not threaded libs suffix IPP 7.x
171
+ set (IPP_SUFFIX "" ) # dynamic not threaded libs suffix Intel IPP 7.x
172
172
else ()
173
- set (IPP_SUFFIX "_l" ) # static not threaded libs suffix IPP 7.x
173
+ set (IPP_SUFFIX "_l" ) # static not threaded libs suffix Intel IPP 7.x
174
174
endif ()
175
175
else ()
176
176
if (WIN32 )
177
177
if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV_ONLY )
178
- set (IPP_SUFFIX "" ) # dynamic not threaded libs suffix IPP 8.x for Windows
178
+ set (IPP_SUFFIX "" ) # dynamic not threaded libs suffix Intel IPP 8.x for Windows
179
179
else ()
180
- set (IPP_SUFFIX "mt" ) # static not threaded libs suffix IPP 8.x for Windows
180
+ set (IPP_SUFFIX "mt" ) # static not threaded libs suffix Intel IPP 8.x for Windows
181
181
endif ()
182
182
else ()
183
- set (IPP_SUFFIX "" ) # static not threaded libs suffix IPP 8.x for Linux/OS X
183
+ set (IPP_SUFFIX "" ) # static not threaded libs suffix Intel IPP 8.x for Linux/OS X
184
184
endif ()
185
185
endif ()
186
186
187
187
if (HAVE_IPP_ICV_ONLY )
188
188
_ipp_add_library (icv )
189
189
else ()
190
- _ipp_add_library (m )
191
190
_ipp_add_library (cv )
192
191
_ipp_add_library (i )
193
192
_ipp_add_library (cc )
@@ -201,7 +200,7 @@ macro(ipp_detect_version)
201
200
get_filename_component (INTEL_COMPILER_LIBRARY_DIR ${IPP_ROOT_DIR} /../compiler/lib REALPATH )
202
201
endif ()
203
202
if (NOT EXISTS ${INTEL_COMPILER_LIBRARY_DIR} )
204
- _ipp_not_supported ("IPP configuration error: can't find Intel compiler library dir ${INTEL_COMPILER_LIBRARY_DIR} " )
203
+ _ipp_not_supported ("Intel IPP configuration error: can't find Intel compiler library dir ${INTEL_COMPILER_LIBRARY_DIR} " )
205
204
endif ()
206
205
if (NOT APPLE )
207
206
if (IPP_X64 )
@@ -231,7 +230,7 @@ macro(ipp_detect_version)
231
230
endif ()
232
231
endif ()
233
232
234
- #message(STATUS "IPP libs: ${IPP_LIBRARIES}")
233
+ #message(STATUS "Intel IPP libs: ${IPP_LIBRARIES}")
235
234
endmacro ()
236
235
237
236
# OPENCV_IPP_PATH is an environment variable for internal usage only, do not use it
@@ -240,12 +239,6 @@ if(DEFINED ENV{OPENCV_IPP_PATH} AND NOT DEFINED IPPROOT)
240
239
endif ()
241
240
242
241
if (NOT DEFINED IPPROOT )
243
- if (IOS AND NOT x86_64 )
244
- # 2016/10: There is an issue with MacOS binary .a file.
245
- # It is fat multiarch library, and can't be "merged" multiple times.
246
- # So try to ignore i386 version
247
- return ()
248
- endif ()
249
242
include ("${OpenCV_SOURCE_DIR} /3rdparty/ippicv/ippicv.cmake" )
250
243
download_ippicv (IPPROOT )
251
244
if (NOT IPPROOT )
@@ -261,7 +254,7 @@ endif()
261
254
262
255
263
256
if (WIN32 AND MINGW AND NOT IPP_VERSION_MAJOR LESS 7 )
264
- # Since IPP built with Microsoft compiler and /GS option
257
+ # Since Intel IPP built with Microsoft compiler and /GS option
265
258
# ======================================================
266
259
# From Windows SDK 7.1
267
260
# (usually in "C:\Program Files\Microsoft Visual Studio 10.0\VC\lib"),
0 commit comments