Skip to content

Commit

Permalink
Use cmake cache string while setting the variable for ROCm Version
Browse files Browse the repository at this point in the history
  • Loading branch information
raramakr committed Oct 2, 2024
1 parent 65ba447 commit b51d3eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/rocprofiler_config_packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ set(CPACK_RPM_PACKAGE_LICENSE "MIT")
# -------------------------------------------------------------------------------------- #
# Make proper version for appending
# Default Value is 99999
set(ROCM_VERSION_FOR_PACKAGE "99999")
set(ROCM_VERSION_FOR_PACKAGE "99999" CACHE STRING "")
if(DEFINED ENV{ROCM_LIBPATCH_VERSION})
set(ROCM_VERSION_FOR_PACKAGE $ENV{ROCM_LIBPATCH_VERSION})
set(ROCM_VERSION_FOR_PACKAGE "$ENV{ROCM_LIBPATCH_VERSION}" CACHE STRING "" FORCE)
endif()
#Prepare final version for the CPACK use
set(CPACK_PACKAGE_VERSION
Expand Down

0 comments on commit b51d3eb

Please sign in to comment.