[PATCH] D142718: libclc: Fix building against an llvm build directory
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 27 11:16:41 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8040e3a4deeb: libclc: Fix building against an llvm build directory (authored by tstellar).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142718/new/
https://reviews.llvm.org/D142718
Files:
libclc/CMakeLists.txt
Index: libclc/CMakeLists.txt
===================================================================
--- libclc/CMakeLists.txt
+++ libclc/CMakeLists.txt
@@ -105,7 +105,10 @@
enable_language( CLC LLAsm )
# This needs to be set before any target that needs it
-include_directories( ${LLVM_INCLUDE_DIR} )
+# We need to use LLVM_INCLUDE_DIRS here, because if we are linking to an
+# llvm build directory, this includes $src/llvm/include which is where all the
+# headers are not $build/include/ which is what LLVM_INCLUDE_DIR is set to.
+include_directories( ${LLVM_INCLUDE_DIRS} )
# Setup prepare_builtins tools
set(LLVM_LINK_COMPONENTS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142718.492854.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230127/05812eeb/attachment.bin>
More information about the llvm-commits
mailing list