# Initial cache fragment for the TransferBench ExternalProject sub-build.
#
# TransferBench links against ROCm install-tree libs and system libs (e.g. libnuma).
# Embed ROCm stack RUNPATH via linker flags only (TB does not honor CMAKE_INSTALL_RPATH).
set(CMAKE_SKIP_RPATH FALSE CACHE BOOL "" FORCE)
set(CMAKE_SKIP_INSTALL_RPATH TRUE CACHE BOOL "" FORCE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE CACHE BOOL "" FORCE)
set(CMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH TRUE CACHE BOOL "" FORCE)
set(CMAKE_EXE_LINKER_FLAGS [[-Wl,--enable-new-dtags -Wl,-rpath,/opt/rocm/lib:/opt/rocm/core-@ROCM_MAJOR_VERSION@/lib]] CACHE STRING "" FORCE)
