diff options
author | Li Xinwei <1326710505@qq.com> | 2020-11-20 19:28:28 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-11-23 06:13:35 +0000 |
commit | 8638b223c68d0b537f5e724aa24784429b9550f2 (patch) | |
tree | b98b4ca21d5ccaf1b549cc1b3362352f0c8eb71b | |
parent | ebacea6cd6ce75f468eeaf446f5b691da9bc2c6a (diff) | |
download | qttools-8638b223c68d0b537f5e724aa24784429b9550f2.tar.gz |
CMake: Fix missing qdbus.exe and qdbusviewer.exe on Windows
Qt DBus module is also available on Windows. Excluding it from optional
components of Win32 will prevent building qdbus.exe and qdbusviewer.exe.
Change-Id: Id2cb4965beb8f136c62c42a80bc9b922d0ffca3b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 1338e2405df3d0d03d55c68e0b804e5e7f872649)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index be0ba4ab1..8b763d244 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,13 +20,11 @@ set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE) set(optional_components "") if(WIN32) list(APPEND optional_components AxContainer) - else() - list(APPEND optional_components DBus) endif() find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network) find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS - Xml Widgets Quick QuickWidgets QmlDevTools + DBus Xml Widgets Quick QuickWidgets QmlDevTools Sql PrintSupport OpenGL OpenGLWidgets ${optional_components}) # special case end |