diff options
author | Elias Hautala <elias.hautala@qt.io> | 2023-08-18 14:26:27 +0300 |
---|---|---|
committer | Elias Hautala <elias.hautala@qt.io> | 2023-08-21 11:16:49 +0300 |
commit | a694805c649e74a540c5b46ddb1ce2b0bea659e2 (patch) | |
tree | ccf93ceda3b1f936cc5a2ca4efdc95ea4dc135d5 /examples | |
parent | 8aa24593f8df20455309966501a46e04153b57b0 (diff) |
Add error message to some examples when building for Android
Add error message to x509 and simulation server examples.
Task-number: QTBUG-111933
Pick-to: 6.5 6.6
Change-Id: Ia0b9f1af3c84e98fddbed412a11e23d2abd6f10b
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/opcua/waterpump/simulationserver/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/opcua/x509/CMakeLists.txt | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/examples/opcua/waterpump/simulationserver/CMakeLists.txt b/examples/opcua/waterpump/simulationserver/CMakeLists.txt index 67419c0..0a35e62 100644 --- a/examples/opcua/waterpump/simulationserver/CMakeLists.txt +++ b/examples/opcua/waterpump/simulationserver/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(simulationserver LANGUAGES CXX C) +if (ANDROID) + message(FATAL_ERROR "This project cannot be built on Android.") +endif() + if(NOT DEFINED INSTALL_EXAMPLESDIR) set(INSTALL_EXAMPLESDIR "examples") endif() diff --git a/examples/opcua/x509/CMakeLists.txt b/examples/opcua/x509/CMakeLists.txt index 25f4e33..1159788 100644 --- a/examples/opcua/x509/CMakeLists.txt +++ b/examples/opcua/x509/CMakeLists.txt @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.16) project(x509 LANGUAGES CXX) +if (ANDROID) + message(FATAL_ERROR "This project cannot be built on Android.") +endif() + if(NOT DEFINED INSTALL_EXAMPLESDIR) set(INSTALL_EXAMPLESDIR "examples") endif() |