diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-05-06 16:16:36 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2023-05-09 10:13:30 +0200 |
commit | 34b9ba3724ec5b4c1d383fd5643fdde7ef6a2105 (patch) | |
tree | 13e49b84a7c4c5c1c5f7e8e5a4ae794eb8229f85 | |
parent | df9b9a9c9e0338cd033fb14894944ef095d52057 (diff) | |
download | qtsensors-34b9ba3724ec5b4c1d383fd5643fdde7ef6a2105.tar.gz |
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.
Pick-to: 6.5 6.2
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>
-rw-r--r-- | src/plugins/sensors/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sensors/CMakeLists.txt b/src/plugins/sensors/CMakeLists.txt index be45afb..e7527d8 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() |