Add explicit dependency to Libdrm::Libdrm for the client as well

Similar to the compositor, we can't rely that qtbase always has a
dependency to it.

Pick-to: 6.2
Fixes: QTBUG-96845
Change-Id: I2b5535c3cb57c8f2193800aac09e097d2b729ce2
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Dominik Holland 2021-10-05 10:57:18 +02:00
parent 55d2590abf
commit 4be0cbb5b3

View File

@ -5,6 +5,13 @@
#### Libraries
# Even if libdrm is already found by qtbase we still need to list it as dependency for some of our
# plugins
if(TARGET Libdrm::Libdrm)
qt_internal_disable_find_package_global_promotion(Libdrm::Libdrm)
endif()
qt_find_package(Libdrm PROVIDED_TARGETS Libdrm::Libdrm MODULE_NAME gui QMAKE_LIB drm MARK_OPTIONAL)
#### Tests