diff --git a/cmake/package.cmake b/cmake/package.cmake index 3f26e32d8b5..5f716f5e0c0 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -11,15 +11,15 @@ set(CPACK_TEMPORARY_PACKAGE_FILE_NAME ${CMAKE_SOURCE_DIR}/build/package/mindspor set(CPACK_TEMPORARY_INSTALL_DIRECTORY ${CMAKE_SOURCE_DIR}/build/package/mindspore) if(ENABLE_GE) set(CPACK_MS_BACKEND "ge") - set(CPACK_MS_TARGET "ascend-cpu") + set(CPACK_MS_TARGET "ascend or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore") elseif(ENABLE_GPU) set(CPACK_MS_BACKEND "ms") - set(CPACK_MS_TARGET "gpu-cpu") + set(CPACK_MS_TARGET "gpu or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore-gpu") elseif(ENABLE_D) set(CPACK_MS_BACKEND "ms") - set(CPACK_MS_TARGET "ascend-cpu") + set(CPACK_MS_TARGET "ascend or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore-ascend") elseif(ENABLE_CPU) set(CPACK_MS_BACKEND "ms") @@ -27,11 +27,11 @@ elseif(ENABLE_CPU) set(CPACK_MS_PACKAGE_NAME "mindspore") elseif(ENABLE_ACL) set(CPACK_MS_BACKEND "debug") - set(CPACK_MS_TARGET "ascend-gpu-cpu") + set(CPACK_MS_TARGET "ascend or gpu or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore-ascend") else() set(CPACK_MS_BACKEND "debug") - set(CPACK_MS_TARGET "ascend-gpu-cpu") + set(CPACK_MS_TARGET "ascend or gpu or cpu") set(CPACK_MS_PACKAGE_NAME "mindspore") endif() include(CPack)