[Beignet] [PATCH] Use pkg_check_modules for OCL ICD header file
Li Peng
peng.li at linux.intel.com
Mon Jun 9 00:54:08 PDT 2014
please ignore this patch,
both Find_Package and pkg_check_modules can detect ocl-icd-dev on ubuntu
14.04
On 一, 2014-06-09 at 14:56 +0800, Li Peng wrote:
> 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"
More information about the Beignet
mailing list