Skip to content

Commit

Permalink
Hotfix: License & rocm-cmake fixes (#1232)
Browse files Browse the repository at this point in the history
* set RPM license type

* Move license installation to rocm-cmake

* Switch component
  • Loading branch information
lawruble13 committed Jan 25, 2022
1 parent 203bf88 commit 60c5f03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion library/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ########################################################################
# Copyright 2016-2021 Advanced Micro Devices, Inc.
# Copyright 2016-2022 Advanced Micro Devices, Inc.
# ########################################################################

# The following helper functions wrap common cmake functions. They are
Expand Down Expand Up @@ -142,6 +142,7 @@ endif()
set( CPACK_RPM_PACKAGE_REQUIRES ${RPM_REQUIREMENTS} )

set( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE.md" )
set( CPACK_RPM_PACKAGE_LICENSE "MIT and BSD")

if (WIN32)
SET( CMAKE_INSTALL_PREFIX "C:/hipSDK" CACHE PATH "Install path" FORCE )
Expand Down
9 changes: 2 additions & 7 deletions library/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ########################################################################
# Copyright 2016-2021 Advanced Micro Devices, Inc.
# Copyright 2016-2022 Advanced Micro Devices, Inc.
# ########################################################################

# ########################################################################
Expand Down Expand Up @@ -515,11 +515,6 @@ rocm_install(FILES "../include/rocblas_module.f90"
DESTINATION "rocblas/include"
)

# Force installation of LICENSE.md
install(FILES "../../LICENSE.md"
DESTINATION "share/doc/rocBLAS"
)

rocm_install_targets(
TARGETS ${package_targets}
INCLUDE
Expand All @@ -537,7 +532,7 @@ if( BUILD_WITH_TENSILE )
rocm_install(
DIRECTORY ${CMAKE_BINARY_DIR}/Tensile/library
DESTINATION ${ROCBLAS_TENSILE_LIBRARY_DIR}
COMPONENT Unspecified)
COMPONENT ${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME}) # Use this cmake variable to be compatible with rocm-cmake 0.6 and 0.7
endif()

# PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
Expand Down

0 comments on commit 60c5f03

Please sign in to comment.