diff --git a/rocclr/CMakeLists.txt b/rocclr/CMakeLists.txt index aab9891ce1..4c23dcb1b4 100644 --- a/rocclr/CMakeLists.txt +++ b/rocclr/CMakeLists.txt @@ -141,6 +141,8 @@ target_include_directories(amdrocclr_static $ $ $ + # GL and EGL headers. + $ $ $ PRIVATE diff --git a/rocclr/device/pal/CMakeLists.txt b/rocclr/device/pal/CMakeLists.txt index 1f50b7baba..682fc80e57 100644 --- a/rocclr/device/pal/CMakeLists.txt +++ b/rocclr/device/pal/CMakeLists.txt @@ -100,10 +100,12 @@ target_include_directories(rocclrpal $ $ $ + # GL and EGL headers + $ + $ $ PRIVATE ${OPENCL_DIR} - ${OPENCL_DIR}/khronos/headers/opencl2.2 ${PROJECT_SOURCE_DIR}/compiler/lib ${PROJECT_SOURCE_DIR}/compiler/lib/include ${PROJECT_SOURCE_DIR}/compiler/lib/backends/common diff --git a/rocclr/device/rocm/CMakeLists.txt b/rocclr/device/rocm/CMakeLists.txt index 19f66606d6..fe63dbd2f3 100644 --- a/rocclr/device/rocm/CMakeLists.txt +++ b/rocclr/device/rocm/CMakeLists.txt @@ -21,10 +21,12 @@ target_include_directories(oclrocm $ $ $ + # GL and EGL headers + $ + $ $ PRIVATE ${OPENCL_DIR} - ${OPENCL_DIR}/khronos/headers/opencl2.2 ${PROJECT_SOURCE_DIR}/compiler/lib ${PROJECT_SOURCE_DIR}/compiler/lib/include ${PROJECT_SOURCE_DIR}/compiler/lib/backends/common