Skip to content

Commit

Permalink
Enable/Disable rocprofiler-register pkg dependency based on build type (
Browse files Browse the repository at this point in the history
#30)

Co-authored-by: Yat Sin, David <[email protected]>
  • Loading branch information
arvindcheru and dayatsin-amd authored Feb 20, 2025
1 parent 107b48f commit 20e6c87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ if (NOT DEFINED BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS ON)
endif()

# Set dependency for rocprofiler-register package
set(HSA_DEP_ROCPROFILER_REGISTER ON CACHE INTERNAL "")
# Set hsa pkg dependency with rocprofiler-register package
# for Shared Library Only.
if (BUILD_SHARED_LIBS)
set(HSA_DEP_ROCPROFILER_REGISTER ON CACHE INTERNAL "")
endif()

if (HSA_DEP_ROCPROFILER_REGISTER)
string(APPEND CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS ", rocprofiler-register")
Expand Down

0 comments on commit 20e6c87

Please sign in to comment.