From f743c82bddf9d4cee4c9a4acf6977cd47164a632 Mon Sep 17 00:00:00 2001 From: Sergey Date: Mon, 6 Mar 2017 15:28:05 +0300 Subject: [PATCH] Updated OpenCVFindMKL.cmake Current version of search for MLKROOT environment variable is wrong and should be corrected to (DEFINED ENV{MKLROOT}) --- cmake/OpenCVFindMKL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVFindMKL.cmake b/cmake/OpenCVFindMKL.cmake index fd95dcb446..dbe0482c8b 100644 --- a/cmake/OpenCVFindMKL.cmake +++ b/cmake/OpenCVFindMKL.cmake @@ -48,7 +48,7 @@ endif() #check current MKL_ROOT_DIR if(NOT MKL_ROOT_DIR OR NOT EXISTS ${MKL_ROOT_DIR}/include/mkl.h) set(mkl_root_paths ${MKL_ROOT_DIR}) - if(DEFINED $ENV{MKLROOT}) + if(DEFINED ENV{MKLROOT}) list(APPEND mkl_root_paths $ENV{MKLROOT}) endif() if(WIN32)