Commit 01f68ba5 authored by Bhushan Shah's avatar Bhushan Shah 📱
Browse files

libtaskmanager: fix build when Qt is built with GLESv2

If Qt is compiled with GLESv2, we can not link against the Qt5::Gui_GL,
that causes the cmake error.
parent b4970ab7
......@@ -28,8 +28,13 @@ if(TARGET PkgConfig::PipeWire)
target_compile_definitions(taskmanagerplugin PRIVATE -DWITH_PIPEWIRE)
target_sources(taskmanagerplugin PUBLIC pipewirecore.cpp pipewiresourceitem.cpp pipewiresourcestream.cpp screencasting.cpp screencastingrequest.cpp ${SRCS})
target_link_libraries(taskmanagerplugin PkgConfig::PipeWire
Qt5::Qml Qt5::Gui_EGL Qt5::Gui_GL Qt5::GuiPrivate
Qt5::Qml Qt5::Gui_EGL Qt5::GuiPrivate
KF5::I18n
KF5::WaylandClient
Wayland::Client)
if (${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL "GLESv2")
target_link_libraries(taskmanagerplugin Qt5::Gui_GLESv2)
else()
target_link_libraries(taskmanagerplugin Qt5::Gui_GL)
endif()
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment