diff options
author | Lukas Rusak <lorusak@gmail.com> | 2023-11-20 09:52:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 09:52:48 -0800 |
commit | d5fe6de81744ad8d97de48f31633b2bfeb3bd0e6 (patch) | |
tree | db2506864ac11ad2df78f95d965fd4c8b7ee53da | |
parent | 460db897107e1073ec471af1d00d071262804fd8 (diff) | |
parent | 95cbd65e9d03fb3ec9d2da5089548458622af102 (diff) |
Merge pull request #24107 from lrusak/egl-includes-Nexus
-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() |