summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-08-13 10:03:56 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-08-17 09:40:31 +0200
commitf33adab3e5e978bd916aaa45f7743d07edac95a9 (patch)
tree22e59dcb36ddedbe1a67f5d1379d7c1bbe4a7527 /tests
parentb1804c3b21aa224266d425a757c463e38bc516af (diff)
CMake: Do not built qdoc/lupdate for MSVC NMC with CMake < 3.19
CMake 3.19 is required to build lupdate/qdoc with llvm support. Task-number: QTBUG-85411 Change-Id: Iabad73b753dc57bc36c826ecf318dea6498b5fb7 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/linguist/lupdate/CMakeLists.txt7
-rw-r--r--tests/auto/qdoc/CMakeLists.txt7
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/linguist/lupdate/CMakeLists.txt b/tests/auto/linguist/lupdate/CMakeLists.txt
index 405663002..27c96e9f8 100644
--- a/tests/auto/linguist/lupdate/CMakeLists.txt
+++ b/tests/auto/linguist/lupdate/CMakeLists.txt
@@ -1,5 +1,12 @@
# Generated from lupdate.pro.
+# special case begin
+if(CMAKE_VERSION VERSION_LESS "3.19" AND MSVC AND QT_FEATURE_debug_and_release)
+ message(WARNING "tst_lupdate will not be built in this configuration.")
+ return()
+endif()
+# special case end
+
#####################################################################
## tst_lupdate Test:
#####################################################################
diff --git a/tests/auto/qdoc/CMakeLists.txt b/tests/auto/qdoc/CMakeLists.txt
index e3372ee65..b3894fb3d 100644
--- a/tests/auto/qdoc/CMakeLists.txt
+++ b/tests/auto/qdoc/CMakeLists.txt
@@ -1,5 +1,12 @@
# Generated from qdoc.pro.
+# special case begin
+if(CMAKE_VERSION VERSION_LESS "3.19" AND MSVC AND QT_FEATURE_debug_and_release)
+ message(WARNING "qdoc tests will not be built in this configuration.")
+ return()
+endif()
+# special case end
+
add_subdirectory(config)
# special case begin
# CMake builds currently don't build qdoc, presumably because the llvm