From 90d46dc278f15fc7848ab2108d0fd8bb953bc715 Mon Sep 17 00:00:00 2001 From: Jeremy Newton Date: Mon, 25 Apr 2022 12:33:46 -0400 Subject: [PATCH] SWDEV-336248 - Don't exclude cl_egl.h from install cl_icd.h includes cl_egl.h, but cl_egl.h is excluded from install. It was reported by the community that including cl_icd.h would error due to the missing cl_egl.h file. I'm assuming that cl_egl.h was excluded because EGL isn't important for ROCm. Since cl_icd.h has some important typedefs, it makes sense just to include cl_egl.h, which seems to be a common practice in open source projects. Signed-off-by: Jeremy Newton Change-Id: I506257c2dc51512ec8e11b1e5dadbe6e48ad785b [ROCm/clr commit: e9dd84814912d55dd4e3b342ab7e412e7120a6c9] --- projects/clr/opencl/packaging/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/clr/opencl/packaging/CMakeLists.txt b/projects/clr/opencl/packaging/CMakeLists.txt index cb57c0ece4..8f9fc88c53 100644 --- a/projects/clr/opencl/packaging/CMakeLists.txt +++ b/projects/clr/opencl/packaging/CMakeLists.txt @@ -19,8 +19,7 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/khronos/headers/opencl2.2/CL USE_SOURCE_PERMISSIONS PATTERN cl_d3d10.h EXCLUDE PATTERN cl_d3d11.h EXCLUDE - PATTERN cl_dx9_media_sharing.h EXCLUDE - PATTERN cl_egl.h EXCLUDE ) + PATTERN cl_dx9_media_sharing.h EXCLUDE ) if(BUILD_ICD) install(TARGETS OpenCL DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT icd )