diff --git a/lite/CMakeLists.txt b/lite/CMakeLists.txt index f1ced0e7748f1fa3761ea95a068d2c69902714d5..974c3e996a087faa539e9b4125224f62b45069c2 100644 --- a/lite/CMakeLists.txt +++ b/lite/CMakeLists.txt @@ -111,8 +111,11 @@ if (LITE_WITH_X86) COMMAND cp -r "${CMAKE_BINARY_DIR}/third_party/eigen3" "${INFER_LITE_PUBLISH_ROOT}/third_party" COMMAND mkdir -p "${INFER_LITE_PUBLISH_ROOT}/demo/cxx" ) - add_dependencies(publish_inference_x86_cxx_demos gflags eigen3 mklml xbyak xxhash glog) add_dependencies(publish_inference_x86_cxx_lib publish_inference_x86_cxx_demos) + add_dependencies(publish_inference_x86_cxx_demos gflags eigen3 xbyak xxhash glog) + if(WITH_MKL) + add_dependencies(publish_inference_x86_cxx_demos mklml) + endif() endif() if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)