From: Carl Ritson <carl.ritson@amd.com>
To: amd-gfx@lists.freedesktop.org
Cc: Tom.StDenis@amd.com, Carl Ritson <carl.ritson@amd.com>
Subject: [PATCH umr] Fix build to use LLVM_INCLUDE_DIRS
Date: Tue, 13 Oct 2020 17:14:31 +0900 [thread overview]
Message-ID: <20201013081431.15355-1-carl.ritson@amd.com> (raw)
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
reply other threads:[~2020-10-13 8:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201013081431.15355-1-carl.ritson@amd.com \
--to=carl.ritson@amd.com \
--cc=Tom.StDenis@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox