aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-11-13 19:01:18 +1000
committerfuzzard <fuzzard@kodi.tv>2023-11-13 19:01:18 +1000
commit76015d1df2c5bb1bb6ee0ea7877fb43d94701288 (patch)
treeac0d5456601cf6482b0b055ddaae8705ee646130 /cmake
parentc5203efba9aebb2ef231775778b4c2a69972c6a7 (diff)
[cmake] FindEGL set CMAKE_REQUIRED_INCLUDES for check_include_files
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindEGL.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/FindEGL.cmake b/cmake/modules/FindEGL.cmake
index b62afdcdad..1a0ce39f7c 100644
--- a/cmake/modules/FindEGL.cmake
+++ b/cmake/modules/FindEGL.cmake
@@ -32,8 +32,10 @@ if(NOT TARGET EGL::EGL)
list(APPEND GL_INTERFACES_LIST egl egl-pb)
set(GL_INTERFACES_LIST ${GL_INTERFACES_LIST} PARENT_SCOPE)
+ set(CMAKE_REQUIRED_INCLUDES "${EGL_INCLUDE_DIR}")
include(CheckIncludeFiles)
check_include_files("EGL/egl.h;EGL/eglext.h;EGL/eglext_angle.h" HAVE_EGLEXTANGLE)
+ unset(CMAKE_REQUIRED_INCLUDES)
add_library(EGL::EGL UNKNOWN IMPORTED)
set_target_properties(EGL::EGL PROPERTIES