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: 6b9e89fe0c]
This commit is contained in:
Ioannis Assiouras
2024-06-20 11:48:21 +01:00
parent 8669b5d29f
commit f07198d7e5
+1 -1
View File
@@ -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)