Use "-" instead of "_" for package name

This is part of fix to SWDEV-208805. The other part will
be in the build_* script.

Change-Id: I36397e3f918d08170db8bb228722a2b7389af83b


[ROCm/amdsmi commit: 0e5c44de2a]
This commit is contained in:
Chris Freehill
2019-11-05 08:45:57 -06:00
parent c7070324f3
commit d4e8ab37d5
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -77,7 +77,11 @@ set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"ROCm System Management Interface library")
endif()
set(CPACK_PACKAGE_FILE_NAME "rocm_smi_lib64-${PKG_VERSION_STR}")
if (NOT ROCM_SMI_PACKAGE)
set(ROCM_SMI_PACKAGE rocm_smi_lib64)
endif()
set(CPACK_PACKAGE_FILE_NAME "${ROCM_SMI_PACKAGE}-${PKG_VERSION_STR}")
## Verbose output.
set(CMAKE_VERBOSE_MAKEFILE on)
+1 -1
View File
@@ -132,7 +132,7 @@ function(get_package_version_number DEFAULT_VERSION_STRING VERSION_PREFIX GIT)
if (DEFINED ENV{ROCM_BUILD_ID})
set(VERSION_ID $ENV{ROCM_BUILD_ID})
else()
set(VERSION_ID "local_build-0")
set(VERSION_ID "local-build-0")
endif()
set(PKG_VERSION_STR "${PKG_VERSION_STR}.${VERSION_ID}")