[Beignet] [PATCH] Add LLVM_INCLUDE_DIR to CMakeList of src.

junyan.he at inbox.com junyan.he at inbox.com
Mon Mar 16 08:27:20 PDT 2015


From: Junyan He <junyan.he at linux.intel.com>

The llvm include should be specified when llvm is
not installed in standard dir.

Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
 src/CMakeLists.txt |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d4181d8..88b2792 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -3,7 +3,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
                     ${DRM_INCLUDE_DIRS}/../
                     ${CMAKE_CURRENT_SOURCE_DIR}/../backend/src/backend/
                     ${CMAKE_CURRENT_SOURCE_DIR}/../include
-                    ${MESA_SOURCE_INCLUDES})
+                    ${MESA_SOURCE_INCLUDES}
+                    ${LLVM_INCLUDE_DIR})
 
 macro (MakeKernelBinStr KERNEL_PATH KERNEL_FILES)
 foreach (KF ${KERNEL_FILES})
-- 
1.7.9.5





More information about the Beignet mailing list