
LLVM can be a transitive link dependency of hip through gl's dependency mesa, which uses it for software rendering. In this case make sure llvm-amdgpu is found with find_package(LLVM) and find_package(Clang) by setting LLVM_ROOT and Clang_ROOT. That makes the patch of find_package's HINTS redundant, so remove that. It did not work anyways, because CMAKE_PREFIX_PATH has higher precedence than HINTS.