[PATCH umr] Fix build to use LLVM_INCLUDE_DIRS

Carl Ritson carl.ritson at amd.com
Tue Oct 13 08:14:31 UTC 2020


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(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a8c08d6..8bf69a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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})
-- 
2.17.1



More information about the amd-gfx mailing list