Skip to contentSkip to conversation

Fix build to use LLVM_INCLUDE_DIRS

PATCH New Carl Ritson 1 participant 1 message Oct 13, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build to use LLVM_INCLUDE_DIRS

Use LLVM_INCLUDE_DIRS instead of LLVM_INCLUDE_DIR to support local builds of LLVM where source and binaries are separate.

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
CMakeLists.txt +1 -1
index a8c08d6..8bf69a8 100644
@@ -66,7 +66,7 @@ if(UMR_NO_LLVM)
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUMR_NO_LLVM")
 else()
 find_package(LLVM REQUIRED COMPONENTS all)
-include_directories(${LLVM_INCLUDE_DIR})
+include_directories(${LLVM_INCLUDE_DIRS})
 
 if(LLVM_CMAKE_DIR)
   list(APPEND CMAKE_MODULE_PATH ${LLVM_CMAKE_DIR})
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx