diff --git a/CMakeLists.txt b/CMakeLists.txt index ae8728f4d4c22f45f13a283a448e907337f37f7a..65164b8472b902be8b0b9d5fb99807d012b8a666 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,7 +109,7 @@ else() endif() set(WITH_MKLML ${WITH_MKL}) -if (WITH_MKL AND ${AVX2_FOUND}) +if (WITH_MKL AND AVX2_FOUND) set(WITH_MKLDNN ON) else() message(STATUS "Do not have AVX2 intrinsics and disabled MKL-DNN")