aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2023-11-14 22:09:04 -0800
committerGitHub <noreply@github.com>2023-11-14 22:09:04 -0800
commitf6ddc9ff0d4d2e2ef47b7365a41eb5d47112725e (patch)
tree35c2ee675b259811b77473d4ae6df7599dfc2964 /cmake
parent543d2268efc864c032c218c28e220a1d76ed9a45 (diff)
parent76015d1df2c5bb1bb6ee0ea7877fb43d94701288 (diff)
Merge pull request #24099 from fuzzard/cmake_freebsd_egl
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