Skip to content

Commit b333b1f

Browse files
committed
Merge pull request opencv#8109 from lupustr3:pvlasov/ipp_build_fix
2 parents dfb348e + 9228a8b commit b333b1f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmake/OpenCVFindIPP.cmake

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ macro(ipp_detect_version)
182182
if(HAVE_IPP_ICV_ONLY)
183183
_ipp_add_library(icv)
184184
else()
185-
_ipp_add_library(core)
186-
_ipp_add_library(s)
185+
_ipp_add_library(m)
186+
_ipp_add_library(cv)
187187
_ipp_add_library(i)
188188
_ipp_add_library(cc)
189-
_ipp_add_library(cv)
189+
_ipp_add_library(s)
190190
_ipp_add_library(vm)
191-
_ipp_add_library(m)
191+
_ipp_add_library(core)
192192

193-
if(UNIX)
193+
if(UNIX AND IPP_VERSION_MAJOR LESS 2017)
194194
get_filename_component(INTEL_COMPILER_LIBRARY_DIR ${IPP_ROOT_DIR}/../lib REALPATH)
195195
if(NOT EXISTS ${INTEL_COMPILER_LIBRARY_DIR})
196196
get_filename_component(INTEL_COMPILER_LIBRARY_DIR ${IPP_ROOT_DIR}/../compiler/lib REALPATH)
@@ -223,7 +223,7 @@ macro(ipp_detect_version)
223223
_ipp_add_compiler_library(irc)
224224
_ipp_add_compiler_library(imf)
225225
_ipp_add_compiler_library(svml)
226-
endif(UNIX)
226+
endif()
227227
endif()
228228

229229
#message(STATUS "IPP libs: ${IPP_LIBRARIES}")

0 commit comments

Comments
 (0)