Fix build of C++ OpenGL underlay example

Test for the right feature flag and fix the compatibility feature names.
This commit is contained in:
Simon Hausmann 2023-05-23 17:25:48 +02:00
parent e2180ea0f9
commit dd04e044d0
2 changed files with 7 additions and 7 deletions

View file

@ -32,6 +32,6 @@ endif()
if (SLINT_FEATURE_INTERPRETER)
add_subdirectory(iot-dashboard/)
endif()
if (TARGET Slint::slint-compiler AND OpenGLES2_FOUND AND(SLINT_FEATURE_BACKEND_WINIT OR SLINT_FEATURE_BACKEND_WINIT_WAYLAND OR SLINT_FEATURE_BACKEND_WINIT_X11) AND SLINT_FEATURE_RENDERER_FEMTOVG)
if (TARGET Slint::slint-compiler AND OpenGLES2_FOUND AND (SLINT_FEATURE_BACKEND_WINIT OR SLINT_FEATURE_BACKEND_WINIT_WAYLAND OR SLINT_FEATURE_BACKEND_WINIT_X11) AND SLINT_FEATURE_RENDERER_WINIT_FEMTOVG)
add_subdirectory(opengl_underlay)
endif()