summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-08-24 11:10:17 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2020-08-25 08:04:39 +0300
commit3a4153766eb98a530c0d7ed71ac6930ff7b1cf26 (patch)
tree7a1b9f7620d63dca93a4f188f10fd50f6dd4c682
parentfcc25b11bbb8393ef3e0738bee107d52ea553111 (diff)
CMake: use definitions when testing EGL
Use any definition from pkgconfig for the EGL compilation test. Change-Id: I95c659b87ab7b0de81f000e3f52195161a493ef5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake1
1 files changed, 1 insertions, 0 deletions
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 <EGL/egl.h>