Relax rules about not having dbus session

Some desktops do not run dbus session and still want to build qt.

Change-Id: I898a3c25c9b47c1a953e426873280ab9e160c669
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Michal Klocek 2019-11-22 17:17:59 +01:00 committed by Alexandru Croitor
parent b714219fea
commit a3ff42ade6

View File

@ -10,9 +10,13 @@ if (QT_FEATURE_dbus)
if(NOT "${dbus_session_test}" STREQUAL "0")
set(run_dbus_tests OFF)
if(QT_FEATURE_dbus_linked)
message(SEND_ERROR "QtDBus is enabled but session bus is not available for testing. Please check the installation.")
message(WARNING
" QtDBus is enabled but session bus is not available for testing.\n"
" Please check the installation. Skipping QtDBus tests.")
else()
message(WARNING "QtDBus is enabled with runtime support, but session bus is not available. Skipping QtDBus tests.")
message(WARNING
" QtDBus is enabled with runtime support, but session bus is not available.\n"
" Skipping QtDBus tests.")
endif()
endif()
endif()