summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindEGL.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindEGL.cmake')
-rw-r--r--cmake/modules/FindEGL.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/modules/FindEGL.cmake b/cmake/modules/FindEGL.cmake
index 93fa530..331ac39 100644
--- a/cmake/modules/FindEGL.cmake
+++ b/cmake/modules/FindEGL.cmake
@@ -14,14 +14,18 @@
14# 14#
15# EGL::EGL - The EGL library 15# EGL::EGL - The EGL library
16 16
17if(CORE_PLATFORM_NAME_LC STREQUAL rbpi)
18 set(_brcmprefix brcm)
19endif()
20
17if(PKG_CONFIG_FOUND) 21if(PKG_CONFIG_FOUND)
18 pkg_check_modules(PC_EGL egl QUIET) 22 pkg_check_modules(PC_EGL ${_brcmprefix}egl QUIET)
19endif() 23endif()
20 24
21find_path(EGL_INCLUDE_DIR EGL/egl.h 25find_path(EGL_INCLUDE_DIR EGL/egl.h
22 PATHS ${PC_EGL_INCLUDEDIR}) 26 PATHS ${PC_EGL_INCLUDEDIR})
23 27
24find_library(EGL_LIBRARY NAMES EGL egl 28find_library(EGL_LIBRARY NAMES ${_brcmprefix}EGL egl
25 PATHS ${PC_EGL_LIBDIR}) 29 PATHS ${PC_EGL_LIBDIR})
26 30
27set(EGL_VERSION ${PC_EGL_VERSION}) 31set(EGL_VERSION ${PC_EGL_VERSION})