From 6aca76a59f41983867e289213a1a100ecd19521f Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Fri, 5 Sep 2025 14:27:31 -0400 Subject: [PATCH] Disable CMAKE_INSTALL_RPATH_USE_LINK_PATH (#864) Fixing some `check-rpath` errors when generating RPM packages in RHEL 10 ``` ERROR 0002: file '/home/gliff/opt/rocprofiler-systems/bin/rocprof-sys-avail' contains an invalid rpath '/opt/rocm-7.0.0/lib' in [$ORIGIN/../lib:$ORIGIN/../lib/rocprofiler-systems:/opt/rocm-7.0.0/lib] ERROR 0002: file '/home/gliff/opt/rocprofiler-systems/bin/rocprof-sys-causal' contains an invalid rpath '/opt/rocm-7.0.0/lib' in [$ORIGIN/../lib:$ORIGIN/../lib/rocprofiler-systems:/opt/rocm-7.0.0/lib] ERROR 0002: file '/home/gliff/opt/rocprofiler-systems/bin/rocprof-sys-run' contains an invalid rpath '/opt/rocm-7.0.0/lib' in [$ORIGIN/../lib:$ORIGIN/../lib/rocprofiler-systems:/opt/rocm-7.0.0/lib] ERROR 0002: file '/home/gliff/opt/rocprofiler-systems/lib/librocprof-sys.so.1.2.0' contains an invalid rpath '/opt/rocm-7.0.0/lib' in [$ORIGIN:$ORIGIN/rocprofiler-systems:/opt/rocm-7.0.0/lib] ``` Signed-off-by: David Galiffi --- projects/rocprofiler-systems/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocprofiler-systems/CMakeLists.txt b/projects/rocprofiler-systems/CMakeLists.txt index ab2d30867f..c4e1d80486 100644 --- a/projects/rocprofiler-systems/CMakeLists.txt +++ b/projects/rocprofiler-systems/CMakeLists.txt @@ -191,7 +191,7 @@ rocprofiler_systems_add_option(CMAKE_CXX_EXTENSIONS "Compiler specific language extensions" OFF ) rocprofiler_systems_add_option(CMAKE_INSTALL_RPATH_USE_LINK_PATH - "Enable rpath to linked libraries" ON + "Enable rpath to linked libraries" OFF ) set(CMAKE_INSTALL_MESSAGE "LAZY" CACHE STRING "Installation message") mark_as_advanced(CMAKE_INSTALL_MESSAGE)