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 <David.Galiffi@amd.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user