We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4266756 commit 8040e3aCopy full SHA for 8040e3a
libclc/CMakeLists.txt
@@ -105,7 +105,10 @@ endif()
105
106
enable_language( CLC LLAsm )
107
# This needs to be set before any target that needs it
108
-include_directories( ${LLVM_INCLUDE_DIR} )
+# We need to use LLVM_INCLUDE_DIRS here, because if we are linking to an
109
+# llvm build directory, this includes $src/llvm/include which is where all the
110
+# headers are not $build/include/ which is what LLVM_INCLUDE_DIR is set to.
111
+include_directories( ${LLVM_INCLUDE_DIRS} )
112
113
# Setup prepare_builtins tools
114
set(LLVM_LINK_COMPONENTS
0 commit comments