From 62896efd70050273cd66c399f12a587a8a2448cf Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 18 Oct 2020 15:32:47 +0200 Subject: [PATCH] CMake: disable wxUSE_GLCANVAS_EGL in non-GTK3 builds Closes #18947 --- build/cmake/init.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/cmake/init.cmake b/build/cmake/init.cmake index 52678cbc49..4b56f6bfa3 100644 --- a/build/cmake/init.cmake +++ b/build/cmake/init.cmake @@ -397,7 +397,7 @@ if(wxUSE_GUI) message(WARNING "opengl not found, wxGLCanvas won't be available") wx_option_force_value(wxUSE_OPENGL OFF) endif() - if(UNIX AND NOT OpenGL_EGL_FOUND) + if(UNIX AND (NOT WXGTK3 OR NOT OpenGL_EGL_FOUND)) wx_option_force_value(wxUSE_GLCANVAS_EGL OFF) endif() endif()