aboutsummaryrefslogtreecommitdiff
path: root/cmake/platform
diff options
context:
space:
mode:
authorPhilipp Kerling <pkerling@casix.org>2018-04-07 12:46:03 +0200
committerPhilipp Kerling <pkerling@casix.org>2018-07-23 00:16:46 +0200
commite648f1789f62ab1698ad5ebf931d9140931ab662 (patch)
tree2658d45b865075b7be833e860b6983c2cb4e161b /cmake/platform
parent0e1215fc0b350c29e312716affb0b87b1de20cdf (diff)
[wayland] Use CEGLContextUtil
Diffstat (limited to 'cmake/platform')
-rw-r--r--cmake/platform/linux/wayland.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/platform/linux/wayland.cmake b/cmake/platform/linux/wayland.cmake
index 7ecc6a34df..97cff67887 100644
--- a/cmake/platform/linux/wayland.cmake
+++ b/cmake/platform/linux/wayland.cmake
@@ -15,6 +15,7 @@ endif()
set(PLATFORM_GLOBAL_TARGET_DEPS generate-wayland-extra-protocols)
set(WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}")
-list(APPEND PLATFORM_DEFINES -DPLATFORM_SETTINGS_FILE=wayland.xml)
+# WL_EGL_PLATFORM is needed by eglplatform.h in case it is included before wayland-egl.h
+list(APPEND PLATFORM_DEFINES -DWL_EGL_PLATFORM=1 -DPLATFORM_SETTINGS_FILE=wayland.xml)
# for wayland-extra-protocols.hpp
include_directories("${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}")