diff --git a/CMakeLists.txt b/CMakeLists.txt index 3169086044cf176de1b8221f986e6cc3341ae3d4..db3c3b8e2069f9ae5ad02286b59decf8fe764c2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,9 +103,9 @@ if(ANDROID OR IOS) add_definitions(-DPADDLE_MOBILE_INFERENCE) endif() -if (APPLE) +if (APPLE OR WIN32) set(WITH_MKL OFF CACHE STRING - "Disable MKL for building on mac" FORCE) + "Disable MKL for building on mac and windows" FORCE) endif() set(THIRD_PARTY_PATH "${CMAKE_BINARY_DIR}/third_party" CACHE STRING