[Beignet] [PATCH] Use pkg_check_modules for OCL ICD header file
Li Peng
peng.li at linux.intel.com
Sun Jun 8 23:56:46 PDT 2014
On ubuntu 14.04, Find_Package couldn't detect ocl-icd-dev
but pkg_check_modules is good to find the package
Signed-off-by: Li Peng <peng.li at intel.com>
---
CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ccfc443..ce67d42 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -145,9 +145,9 @@ ELSE(MESA_SOURCE_FOUND)
MESSAGE(STATUS "Looking for mesa source code - not found, cl_khr_gl_sharing will be disabled.")
ENDIF(MESA_SOURCE_FOUND)
-Find_Package(OCLIcd)
+pkg_check_modules(OCLIcd REQUIRED ocl-icd)
IF(OCLIcd_FOUND)
- MESSAGE(STATUS "Looking for OCL ICD header file - found")
+ MESSAGE(STATUS "Looking for OCL ICD header file - found at ${OCLIcd_PREFIX}")
configure_file (
"intel-beignet.icd.in"
"intel-beignet.icd"
--
1.9.1
More information about the Beignet
mailing list