Skip to content

Commit ecd1b72

Browse files
committed
Includes the arch name in the package file name to avoid conflicts
1 parent 3c139aa commit ecd1b72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ set_property(CACHE SPM_PROTOBUF_PROVIDER PROPERTY STRINGS "internal" "package")
3737
set(SPM_ABSL_PROVIDER "internal" CACHE STRING "Provider of absl library")
3838
set_property(CACHE SPM_ABSL_PROVIDER PROPERTY STRINGS "internal" "module" "package")
3939

40+
# Includes processor name to avoid conflicts.
41+
set(CPACK_PACKAGE_FILE_NAME
42+
"sentencepiece-${SPM_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
43+
4044
if (SPM_CROSS_SYSTEM_PROCESSOR)
4145
set(CMAKE_SYSTEM_PROCESSOR ${SPM_CROSS_SYSTEM_PROCESSOR})
4246
endif()

0 commit comments

Comments
 (0)