summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-05-06 16:16:36 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-05-09 17:44:50 +0000
commit410b16c2db26ba83fee42e2c6b05a9607760871a (patch)
treecb16a3f45ccd8aa357131aa03c400f012561e1ac
parenta292fa83d046b21df3ef2bd92d3c5b7a7309280b (diff)
Avoid enabling the "dummy" sensors plugin by default
The dummy plugin appears to have adverse effects on performance on linux. It causes constant CPU usage in for example KDE's background daemon, without having any use. The condition should be fixed to only build when dummy was explicitly enabed. Fixes: QTBUG-113435 Change-Id: If10750fb08b1537b0108f09f23cff6af10c33c31 Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 34b9ba3724ec5b4c1d383fd5643fdde7ef6a2105) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/plugins/sensors/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sensors/CMakeLists.txt b/src/plugins/sensors/CMakeLists.txt
index be45afb9..e7527d8f 100644
--- a/src/plugins/sensors/CMakeLists.txt
+++ b/src/plugins/sensors/CMakeLists.txt
@@ -25,6 +25,6 @@ if(LINUX AND TARGET Qt::DBus AND NOT SENSORS_PLUGINS OR "iio-sensor-proxy" IN_LI
add_subdirectory(iio-sensor-proxy)
endif()
-if(NOT SENSORS_PLUGINS OR "dummy" IN_LIST SENSORS_PLUGINS)
+if("dummy" IN_LIST SENSORS_PLUGINS)
add_subdirectory(dummy)
endif()