summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2020-09-03 15:01:05 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-09-15 20:05:32 +0200
commit44920e7fb272f49423c925555e8ae3bc38ffd8a4 (patch)
tree35d318f26cbdc006f7eaf4ff993e3e497b3f25b3 /src/3rdparty
parent93fc3afe71467ca6aeffa41d7a6f4a170f82b62e (diff)
CMake: Fix building with -DQT_FEATURE_gui=OFF
Some CMake files currently assume that QtGui is always enabled and we get a configure-time failure without these changes. Task-number: QTBUG-86053 Change-Id: I28e32c180c32221f32519017bac6b518a19d5983 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/CMakeLists.txt b/src/3rdparty/CMakeLists.txt
index d6ef4f3a56..56b81bb7af 100644
--- a/src/3rdparty/CMakeLists.txt
+++ b/src/3rdparty/CMakeLists.txt
@@ -1,17 +1,17 @@
# special case skip regeneration
# The file is maintained manually
-if(QT_FEATURE_png AND NOT QT_FEATURE_system_png)
+if(QT_FEATURE_gui AND QT_FEATURE_png AND NOT QT_FEATURE_system_png)
add_subdirectory(libpng)
endif()
qt_install_3rdparty_library_wrap_config_extra_file(BundledLibpng)
-if(QT_FEATURE_freetype AND NOT QT_FEATURE_system_freetype)
+if(QT_FEATURE_gui AND QT_FEATURE_freetype AND NOT QT_FEATURE_system_freetype)
add_subdirectory(freetype)
endif()
qt_install_3rdparty_library_wrap_config_extra_file(BundledFreetype)
-if(QT_FEATURE_harfbuzz AND NOT QT_FEATURE_system_harfbuzz)
+if(QT_FEATURE_gui AND QT_FEATURE_harfbuzz AND NOT QT_FEATURE_system_harfbuzz)
add_subdirectory(harfbuzz-ng)
endif()
qt_install_3rdparty_library_wrap_config_extra_file(BundledHarfbuzz)