ROCm / rocm-cmake

CMake modules used within the ROCm libraries
https://rocm.docs.amd.com/projects/ROCmCMakeBuildTools/en/latest/
MIT License
59 stars 42 forks source link

[Issue]: runtime package is not generated when `BUILD_SHARED_LIBS` is falsy, even if targets are installed to it #229

Open lawruble13 opened 5 hours ago

lawruble13 commented 5 hours ago

Problem Description

TransferBench is a component which only installs one executable. As it builds no libraries, it doesn't set BUILD_SHARED_LIBS at any point, so it's left to the default (OFF). This means that the runtime package isn't generated, even though rocm_install_targets designates the executable to be installed to that runtime package.

Operating System

all

CPU

n/a

GPU

AMD Radeon VII

ROCm Version

ROCm 6.2.0, ROCm 6.1.0, ROCm 6.0.0

ROCm Component

rocm-cmake

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

lawruble13 commented 5 hours ago

I may suggest that we create an EXECUTABLE_ONLY flag similar to the HEADER_ONLY flag, to prevent the creation of the devel package for components which only install executables.