summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Moskal <bartlomiej.moskal@qt.io>2023-01-09 13:45:57 +0100
committerBartlomiej Moskal <bartlomiej.moskal@qt.io>2023-01-13 08:21:03 +0000
commit015345f0eb7c6f1b51f476ffe21a2265c6c1b5aa (patch)
tree5e3a5d136491092a63697bef5abcf96e81d35c11
parent8209431ab483d7141a9c5eab140f51d263b5613e (diff)
Add build error in Devices example for not supported OS
Add error message to Devices example for cmake. 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: Rami Potinkara <rami.potinkara@qt.io>
-rw-r--r--examples/multimedia/devices/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/multimedia/devices/CMakeLists.txt b/examples/multimedia/devices/CMakeLists.txt
index d75b4f23f..c7e038bb5 100644
--- a/examples/multimedia/devices/CMakeLists.txt
+++ b/examples/multimedia/devices/CMakeLists.txt
@@ -3,6 +3,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_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)