rocm-cmake icon indicating copy to clipboard operation
rocm-cmake copied to clipboard

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

Open lawruble13 opened this issue 1 year ago • 1 comments

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 avatar Sep 19 '24 16:09 lawruble13

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.

lawruble13 avatar Sep 19 '24 16:09 lawruble13