11
11
#
12
12
# On return this will define:
13
13
#
14
- # HAVE_IPP - True if Intel IPP found
15
- # HAVE_IPP_ICV_ONLY - True if Intel IPP ICV version is available
16
- # IPP_ROOT_DIR - root of IPP installation
17
- # IPP_INCLUDE_DIRS - IPP include folder
18
- # IPP_LIBRARIES - IPP libraries that are used by OpenCV
19
- # IPP_VERSION_STR - string with the newest detected IPP version
20
- # IPP_VERSION_MAJOR - numbers of IPP version (MAJOR.MINOR.BUILD)
14
+ # HAVE_IPP - True if Intel IPP found
15
+ # HAVE_IPP_ICV - True if Intel IPP ICV version is available
16
+ # IPP_ROOT_DIR - root of IPP installation
17
+ # IPP_INCLUDE_DIRS - IPP include folder
18
+ # IPP_LIBRARIES - IPP libraries that are used by OpenCV
19
+ # IPP_VERSION_STR - string with the newest detected IPP version
20
+ # IPP_VERSION_MAJOR - numbers of IPP version (MAJOR.MINOR.BUILD)
21
21
# IPP_VERSION_MINOR
22
22
# IPP_VERSION_BUILD
23
23
#
24
24
# Created: 30 Dec 2010 by Vladimir Dudnik (vladimir.dudnik@intel.com)
25
25
#
26
26
27
27
unset (HAVE_IPP CACHE )
28
- unset (HAVE_IPP_ICV_ONLY )
28
+ unset (HAVE_IPP_ICV )
29
29
unset (IPP_ROOT_DIR )
30
30
unset (IPP_INCLUDE_DIRS )
31
31
unset (IPP_LIBRARIES )
@@ -79,7 +79,7 @@ endmacro()
79
79
macro (_ipp_not_supported )
80
80
message (STATUS ${ARGN} )
81
81
unset (HAVE_IPP )
82
- unset (HAVE_IPP_ICV_ONLY )
82
+ unset (HAVE_IPP_ICV )
83
83
unset (IPP_VERSION_STR )
84
84
return ()
85
85
endmacro ()
@@ -92,7 +92,7 @@ macro(ipp_detect_version)
92
92
set (__msg )
93
93
if (EXISTS ${IPP_ROOT_DIR} /include/ippicv_redefs.h )
94
94
set (__msg " (ICV version)" )
95
- set (HAVE_IPP_ICV_ONLY 1 )
95
+ set (HAVE_IPP_ICV 1 )
96
96
elseif (EXISTS ${IPP_ROOT_DIR} /include/ipp.h )
97
97
# nothing
98
98
else ()
@@ -118,7 +118,7 @@ macro(ipp_detect_version)
118
118
set (IPP_LIBRARY_DIR ${DIR} )
119
119
endmacro ()
120
120
121
- if (APPLE AND NOT HAVE_IPP_ICV_ONLY )
121
+ if (APPLE AND NOT HAVE_IPP_ICV )
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 )
@@ -128,7 +128,7 @@ macro(ipp_detect_version)
128
128
129
129
macro (_ipp_add_library name )
130
130
# dynamic linking is only supported for standalone version of Intel IPP
131
- if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV_ONLY )
131
+ if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV )
132
132
if (WIN32 )
133
133
set (IPP_LIB_PREFIX ${CMAKE_IMPORT_LIBRARY_PREFIX} )
134
134
set (IPP_LIB_SUFFIX ${CMAKE_IMPORT_LIBRARY_SUFFIX} )
@@ -141,7 +141,7 @@ macro(ipp_detect_version)
141
141
set (IPP_LIB_SUFFIX ${CMAKE_STATIC_LIBRARY_SUFFIX} )
142
142
endif ()
143
143
if (EXISTS ${IPP_LIBRARY_DIR} /${IPP_LIB_PREFIX}${IPP_PREFIX}${name}${IPP_SUFFIX}${IPP_LIB_SUFFIX} )
144
- if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV_ONLY )
144
+ if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV )
145
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 ()
@@ -167,14 +167,14 @@ macro(ipp_detect_version)
167
167
168
168
set (IPP_PREFIX "ipp" )
169
169
if (${IPP_VERSION_STR} VERSION_LESS "8.0" )
170
- if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV_ONLY )
170
+ if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV )
171
171
set (IPP_SUFFIX "" ) # dynamic not threaded libs suffix Intel IPP 7.x
172
172
else ()
173
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
- if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV_ONLY )
177
+ if (BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV )
178
178
set (IPP_SUFFIX "" ) # dynamic not threaded libs suffix Intel IPP 8.x for Windows
179
179
else ()
180
180
set (IPP_SUFFIX "mt" ) # static not threaded libs suffix Intel IPP 8.x for Windows
@@ -184,7 +184,7 @@ macro(ipp_detect_version)
184
184
endif ()
185
185
endif ()
186
186
187
- if (HAVE_IPP_ICV_ONLY )
187
+ if (HAVE_IPP_ICV )
188
188
_ipp_add_library (icv )
189
189
else ()
190
190
_ipp_add_library (cv )
0 commit comments