CMake: disable wxUSE_GLCANVAS_EGL in non-GTK3 builds

Closes #18947
This commit is contained in:
Maarten Bent
2020-10-18 15:32:47 +02:00
parent 0417dabdbd
commit 62896efd70

View File

@@ -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()