Commit f743c82b authored by Sergey's avatar Sergey Committed by GitHub

Updated OpenCVFindMKL.cmake

Current version of search for MLKROOT environment variable is wrong and should be corrected to (DEFINED ENV{MKLROOT})
parent 3e2b05b0
...@@ -48,7 +48,7 @@ endif() ...@@ -48,7 +48,7 @@ endif()
#check current MKL_ROOT_DIR #check current MKL_ROOT_DIR
if(NOT MKL_ROOT_DIR OR NOT EXISTS ${MKL_ROOT_DIR}/include/mkl.h) if(NOT MKL_ROOT_DIR OR NOT EXISTS ${MKL_ROOT_DIR}/include/mkl.h)
set(mkl_root_paths ${MKL_ROOT_DIR}) set(mkl_root_paths ${MKL_ROOT_DIR})
if(DEFINED $ENV{MKLROOT}) if(DEFINED ENV{MKLROOT})
list(APPEND mkl_root_paths $ENV{MKLROOT}) list(APPEND mkl_root_paths $ENV{MKLROOT})
endif() endif()
if(WIN32) if(WIN32)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment