[Beignet] [PATCH] add building dependency GIT_SHA1

Meng Mengmeng mengmeng.meng at intel.com
Wed Nov 5 15:47:18 PST 2014


Signed-off-by: Meng Mengmeng <mengmeng.meng at intel.com>
---
 src/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9e65856..fc5de89 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -119,6 +119,7 @@ SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic,--all
 
 link_directories (${LLVM_LIBRARY_DIR} ${DRM_LIBDIR})
 add_library(cl SHARED ${OPENCL_SRC})
+ADD_DEPENDENCIES(cl ${GIT_SHA1})
 target_link_libraries(
                       cl
                       ${X11_LIBRARIES}
-- 
1.9.3



More information about the Beignet mailing list