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 <[email protected]>
> ---
>  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"


_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to