diff options
author | Tom Stellard <tstellar@redhat.com> | 2023-01-27 11:15:54 -0800 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2023-01-27 11:16:03 -0800 |
commit | 8040e3a4deeb25edc34fb4f89e032ff58ad50572 (patch) | |
tree | 2cb29dca4f8219c345566bf88e977f3348c8dafa | |
parent | 42667563721e139a93ab886119ea2780ebc3fecc (diff) | |
download | llvm-8040e3a4deeb25edc34fb4f89e032ff58ad50572.zip llvm-8040e3a4deeb25edc34fb4f89e032ff58ad50572.tar.gz llvm-8040e3a4deeb25edc34fb4f89e032ff58ad50572.tar.bz2 |
libclc: Fix building against an llvm build directory
Reviewed By: thieta
Differential Revision: https://reviews.llvm.org/D142718
-rw-r--r-- | libclc/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt index 0e21a86..f712100 100644 --- a/libclc/CMakeLists.txt +++ b/libclc/CMakeLists.txt @@ -105,7 +105,10 @@ endif() 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 |