From d0ce4389bb11355f438a8f6fb58ea0ac5ebb76ae Mon Sep 17 00:00:00 2001 From: Jonas Vautherin Date: Tue, 16 Jan 2024 00:36:00 +0100 Subject: [PATCH] cmake: enable MLN_WITH_EGL and OPENGL_USE_GLES for Wayland --- platform/linux/linux.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/linux/linux.cmake b/platform/linux/linux.cmake index a83f8407605..a180e657a4a 100644 --- a/platform/linux/linux.cmake +++ b/platform/linux/linux.cmake @@ -15,6 +15,11 @@ find_package(Threads REQUIRED) pkg_search_module(WEBP libwebp REQUIRED) pkg_search_module(LIBUV libuv REQUIRED) +if(MLN_WITH_WAYLAND) + set(MLN_WITH_EGL TRUE) + set(OPENGL_USE_GLES3 TRUE) +endif() + target_sources( mbgl-core PRIVATE