diff options
author | Bartlomiej Moskal <bartlomiej.moskal@qt.io> | 2023-01-09 13:45:57 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-01-11 09:33:07 +0000 |
commit | 572d62de5ef66718285cb9d856bb0e899e9489ff (patch) | |
tree | e9a02381fd3e744f038f17285db8fe8a3a389aeb /examples | |
parent | f3c56a1403be1e4b13b36836df8cd1bf19fc965a (diff) |
Add build error in Devices example for not supported OS
Add error message to Devices example for cmake and qmake.
It will allow to avoid building by unsupported operating systems in the
future.
Fixes: QTBUG-109539
Change-Id: Id8d63e8b6c2a9f066466cbd718510007b55019e1
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit aba7bc72e1ed1b964959e6e358ea3c77db3586c3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimedia/devices/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/multimedia/devices/devices.pro | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/multimedia/devices/CMakeLists.txt b/examples/multimedia/devices/CMakeLists.txt index 3e19c12ec..b617066d3 100644 --- a/examples/multimedia/devices/CMakeLists.txt +++ b/examples/multimedia/devices/CMakeLists.txt @@ -1,6 +1,10 @@ cmake_minimum_required(VERSION 3.16) project(devices LANGUAGES CXX) +if(ANDROID OR IOS) + message(FATAL_ERROR "This is a commandline tool that is not supported on mobile platforms") +endif() + set(CMAKE_AUTOMOC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) diff --git a/examples/multimedia/devices/devices.pro b/examples/multimedia/devices/devices.pro index a03166ca4..bbc5ecea8 100644 --- a/examples/multimedia/devices/devices.pro +++ b/examples/multimedia/devices/devices.pro @@ -1,3 +1,5 @@ +android|ios: error("This is a commandline tool that is not supported on mobile platforms") + TEMPLATE = app TARGET = devices |