From f07198d7e5818ec902478ff13245a70825338858 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Thu, 20 Jun 2024 11:48:21 +0100 Subject: [PATCH] SWDEV-469138 - Added fix for find_package(LLVM) Changed find_package call to prioritize the package that is found under the rocm installation over other system locations Change-Id: Ice93c94bbb9cdebd467d3e88bb2e4bfb7a1e76d9 [ROCm/clr commit: 6b9e89fe0cf9a08ce5e3b81a240977a89587dd03] --- projects/clr/hipamd/src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/CMakeLists.txt b/projects/clr/hipamd/src/CMakeLists.txt index 31437e87c2..3480dbbbfa 100644 --- a/projects/clr/hipamd/src/CMakeLists.txt +++ b/projects/clr/hipamd/src/CMakeLists.txt @@ -188,7 +188,7 @@ endif() # Enable pre compiled header if(__HIP_ENABLE_PCH) find_package(LLVM REQUIRED CONFIG - PATHS + HINTS ${ROCM_PATH}/llvm) # find_package(LLVM) returns the lib/cmake/llvm location. We require the root. if(NOT DEFINED HIP_LLVM_ROOT)