From 3a4153766eb98a530c0d7ed71ac6930ff7b1cf26 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Mon, 24 Aug 2020 11:10:17 +0300 Subject: CMake: use definitions when testing EGL Use any definition from pkgconfig for the EGL compilation test. Change-Id: I95c659b87ab7b0de81f000e3f52195161a493ef5 Reviewed-by: Alexandru Croitor --- cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/3rdparty') diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake index 55ca2a99bd..16dc1768ea 100644 --- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake +++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake @@ -118,6 +118,7 @@ endif() cmake_push_check_state(RESET) list(APPEND CMAKE_REQUIRED_LIBRARIES "${EGL_LIBRARY}") list(APPEND CMAKE_REQUIRED_INCLUDES "${EGL_INCLUDE_DIR}") +list(APPEND CMAKE_REQUIRED_DEFINITIONS "${EGL_DEFINITIONS}") check_cxx_source_compiles(" #include -- cgit v1.2.3