Skip to content

Commit

Permalink
[HIPIFY] Install LICENSE.txt file with the package
Browse files Browse the repository at this point in the history
  • Loading branch information
emankov committed Jan 22, 2022
1 parent dff1269 commit 64c6561
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016 - 2021 Advanced Micro Devices, Inc.
Copyright (c) 2016 - 2022 Advanced Micro Devices, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 3 additions & 0 deletions packaging/hipify-clang.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ set(CPACK_PACKAGE_DESCRIPTION "This tool translates CUDA source code into portab
set(CPACK_SET_DESTDIR TRUE)
set(CPACK_INSTALL_PREFIX @CPACK_PACKAGING_INSTALL_PREFIX@)
set(CPACK_GENERATOR "TGZ;DEB;RPM")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt")
install(FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION share/doc/%{CPACK_PACKAGE_NAME})

#Make proper version for appending
#Default Value is 99999, setting it first
Expand Down Expand Up @@ -63,6 +65,7 @@ if(DEFINED ENV{CPACK_RPM_PACKAGE_RELEASE})
else()
set(CPACK_RPM_PACKAGE_RELEASE "local")
endif()
set(CPACK_RPM_PACKAGE_LICENSE "MIT")

#Set rpm distro
if(CPACK_RPM_PACKAGE_RELEASE)
Expand Down

0 comments on commit 64c6561

Please sign in to comment.