forked from mindspore-Ecosystem/mindspore
config mac dev package name
This commit is contained in:
parent
c13f31861c
commit
2193f058f0
|
@ -19,18 +19,22 @@ set(CPACK_PYTHON_VERSION ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
|
|||
set(CPACK_OSX_DEPLOYMENT_TARGET ${CMAKE_OSX_DEPLOYMENT_TARGET})
|
||||
|
||||
|
||||
if(ENABLE_GPU)
|
||||
set(CPACK_MS_BACKEND "ms")
|
||||
set(CPACK_MS_TARGET "gpu or cpu")
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-gpu")
|
||||
elseif(ENABLE_CPU)
|
||||
if(ENABLE_CPU)
|
||||
set(CPACK_MS_BACKEND "ms")
|
||||
set(CPACK_MS_TARGET "cpu")
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
else()
|
||||
set(CPACK_MS_BACKEND "debug")
|
||||
set(CPACK_MS_TARGET "ascend or gpu or cpu")
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
endif()
|
||||
include(CPack)
|
||||
|
||||
|
|
Loading…
Reference in New Issue