diff options
author | Li Peng <peng.li@linux.intel.com> | 2014-06-04 14:21:44 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-04 12:31:27 +0800 |
commit | f2479594d4a5f71bd1eb389a4efb70fa132a19d7 (patch) | |
tree | 4d3038a6e52e632c927d2d52d8f92d44d5856792 /src/CMakeLists.txt | |
parent | 1edc50b11d75883b6895978a20cc29e117eb3f86 (diff) |
add DRM_LIBDIR path into link directory list
Then beignet can link to user preferred drm library rather than default
Signed-off-by: Li Peng <peng.li@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a8d35d65..af782785 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -95,7 +95,7 @@ endif (OCLIcd_FOUND) SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic,--allow-shlib-undefined") -link_directories (${LLVM_LIBRARY_DIR}) +link_directories (${LLVM_LIBRARY_DIR} ${DRM_LIBDIR}) add_library(cl SHARED ${OPENCL_SRC}) target_link_libraries( cl |