[Beignet] [PATCH] First reference beignet's CL header to build

Yang, Rong R rong.r.yang at intel.com
Mon Nov 16 19:32:20 PST 2015


LGTM, pushed, thanks.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Zhenyu Wang
> Sent: Monday, November 16, 2015 15:18
> To: beignet at lists.freedesktop.org
> Subject: [Beignet] [PATCH] First reference beignet's CL header to build
> 
> This is to fix build error when new intel extension is added into beignet. As
> current cmake rule will use old system installed CL headers instead of beignet
> ones, which leads to compile failure as new extension definition won't be
> found. So this trys to simply always prefer to use beignet's CL header in
> build/install.
> 
> Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
> ---
>  CMakeLists.txt | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c6c373..147bb25 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -32,7 +32,9 @@ configure_file (
>    "src/OCLConfig.h"
>  )
> 
> -INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}
> ${CMAKE_CURRENT_SOURCE_DIR})
> +INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}
> ${CMAKE_CURRENT_SOURCE_DIR}
> +                    ${CMAKE_CURRENT_SOURCE_DIR}/include)
> +
> 
>  INCLUDE (FindPkgConfig)
> 
> --
> 2.6.2
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list