@@ -85,8 +85,6 @@ function(get_ipp_version _ROOT_DIR)
85
85
message (STATUS "found IPP: ${_MAJOR} .${_MINOR} .${_BUILD} [${_VERSION_STR} ]" )
86
86
message (STATUS "at: ${_ROOT_DIR} " )
87
87
88
- return ()
89
-
90
88
endfunction ()
91
89
92
90
@@ -129,8 +127,6 @@ function(set_ipp_old_libraries)
129
127
${IPP_LIB_PREFIX}${IPP_PREFIX}${IPPCORE}${IPP_ARCH}${IPP_SUFFIX}${IPP_LIB_SUFFIX}
130
128
PARENT_SCOPE )
131
129
132
- return ()
133
-
134
130
endfunction ()
135
131
136
132
@@ -173,7 +169,6 @@ function(set_ipp_new_libraries _LATEST_VERSION)
173
169
${IPP_LIB_PREFIX} svml${CMAKE_SHARED_LIBRARY_SUFFIX} )
174
170
endif ()
175
171
set (IPP_LIBRARIES ${IPP_LIBRARIES} PARENT_SCOPE )
176
- return ()
177
172
178
173
endfunction ()
179
174
@@ -208,7 +203,7 @@ function(set_ipp_variables _LATEST_VERSION)
208
203
set (IPP_LIBRARIES ${IPP_LIBRARIES} PARENT_SCOPE )
209
204
message (STATUS "IPP libs: ${IPP_LIBRARIES} " )
210
205
211
- else ( )
206
+ elseif ( ${_LATEST_VERSION} VERSION_LESS "9.0" )
212
207
# message(STATUS "new")
213
208
214
209
# set INCLUDE and LIB folders
@@ -229,7 +224,10 @@ function(set_ipp_variables _LATEST_VERSION)
229
224
endif ()
230
225
231
226
if (UNIX )
232
- get_filename_component (INTEL_COMPILER_LIBRARY_DIR ${IPP_ROOT_DIR} /../lib REALPATH )
227
+ get_filename_component (INTEL_COMPILER_LIBRARY_DIR ${IPP_ROOT_DIR} /../compiler/lib REALPATH )
228
+ if (NOT EXISTS "${INTEL_COMPILER_LIBRARY_DIR} " )
229
+ get_filename_component (INTEL_COMPILER_LIBRARY_DIR ${IPP_ROOT_DIR} /../lib REALPATH )
230
+ endif ()
233
231
if (IPP_X64 )
234
232
if (NOT EXISTS ${INTEL_COMPILER_LIBRARY_DIR} /intel64 )
235
233
message (SEND_ERROR "Intel compiler EM64T libraries not found" )
@@ -253,10 +251,11 @@ function(set_ipp_variables _LATEST_VERSION)
253
251
set (IPP_LIBRARIES ${IPP_LIBRARIES} PARENT_SCOPE )
254
252
message (STATUS "IPP libs: ${IPP_LIBRARIES} " )
255
253
254
+ else ()
255
+ message (STATUS "IPP: version ${_LATEST_VERSION} is not supported (${IPP_ROOT_DIR} )" )
256
+ set (IPP_FOUND 0 PARENT_SCOPE )
256
257
endif ()
257
258
258
- return ()
259
-
260
259
endfunction ()
261
260
262
261
0 commit comments