diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-10-21 15:24:01 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-10-24 12:13:00 +0000 |
commit | 8df0fbc1d42ae113bf546a3f8b8ee0c70ac3815d (patch) | |
tree | 9f2a14913ff059d865c49c36c79c3834fce01de3 | |
parent | fe6227629f85bea88cbf4655204ad51823dc3afb (diff) | |
download | qttools-8df0fbc1d42ae113bf546a3f8b8ee0c70ac3815d.tar.gz |
Disable linguist examples if linguist itself is not built
Fixes: QTBUG-107845
Change-Id: I469a1b12a421c8e4a8b4d0afa66d66e6a2694c58
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit d34bf2c37ee0b4eaee4bb677be7f682cde2e3ed8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 7e4db83ab..89ea3500d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -8,7 +8,9 @@ if(TARGET Qt::Widgets) if(TARGET Qt::Help) add_subdirectory(help) endif() - add_subdirectory(linguist) + if(QT_FEATURE_linguist) + add_subdirectory(linguist) + endif() add_subdirectory(uitools) endif() if(QT_FEATURE_process AND TARGET Qt::Widgets) |