AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH umr] Fix build to use LLVM_INCLUDE_DIRS
@ 2020-10-13  8:14 Carl Ritson
  0 siblings, 0 replies; only message in thread
From: Carl Ritson @ 2020-10-13  8:14 UTC (permalink / raw)
  To: amd-gfx; +Cc: Tom.StDenis, Carl Ritson

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

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-13  8:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-13  8:14 [PATCH umr] Fix build to use LLVM_INCLUDE_DIRS Carl Ritson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox