diff options
author | fuzzard <fuzzard@kodi.tv> | 2023-11-13 19:01:18 +1000 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2023-11-15 19:29:58 -0800 |
commit | 95cbd65e9d03fb3ec9d2da5089548458622af102 (patch) | |
tree | db2506864ac11ad2df78f95d965fd4c8b7ee53da /cmake | |
parent | 460db897107e1073ec471af1d00d071262804fd8 (diff) |
[cmake] FindEGL set CMAKE_REQUIRED_INCLUDES for check_include_files
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindEGL.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/FindEGL.cmake b/cmake/modules/FindEGL.cmake index a68a8db901..37bd663ada 100644 --- a/cmake/modules/FindEGL.cmake +++ b/cmake/modules/FindEGL.cmake @@ -36,8 +36,11 @@ if(EGL_FOUND) set(EGL_LIBRARIES ${EGL_LIBRARY}) set(EGL_INCLUDE_DIRS ${EGL_INCLUDE_DIR}) set(EGL_DEFINITIONS -DHAS_EGL=1) + 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) + if(HAVE_EGLEXTANGLE) list(APPEND EGL_DEFINITIONS "-DHAVE_EGLEXTANGLE=1") endif() |