diff options
author | Brad King <brad.king@kitware.com> | 2021-01-07 14:52:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-07 18:22:31 (GMT) |
commit | 63079b97f0ee2f6836f7574e90c1c3864340e950 (patch) | |
tree | ffdb0804858125d683508820216cbf0db8ad0bb7 /Source/QtDialog | |
parent | a6abe70e72141f03d284dfcc6559c2b4e2848b8e (diff) | |
download | CMake-63079b97f0ee2f6836f7574e90c1c3864340e950.zip CMake-63079b97f0ee2f6836f7574e90c1c3864340e950.tar.gz CMake-63079b97f0ee2f6836f7574e90c1c3864340e950.tar.bz2 |
cmake-gui: Fix macOS styling for binaries distributed with Qt 5.10+
According to https://bugreports.qt.io/browse/QTBUG-59428, Qt 5.10 and
above moved macOS style handling into a separate `qmacstyle` plugin.
Install the plugin in our `CMake.app` package on macOS.
Issue: #21606
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt index 9ae677b..d8f89d6 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -119,6 +119,9 @@ if(CMake_INSTALL_DEPENDENCIES AND (APPLE OR WIN32)) if(APPLE) if (INSTALLED_QT_VERSION VERSION_EQUAL 5) install_qt_plugin("Qt5::QCocoaIntegrationPlugin" QT_PLUGINS) + if(TARGET Qt5::QMacStylePlugin) + install_qt_plugin("Qt5::QMacStylePlugin" QT_PLUGINS) + endif() else() # FIXME: Minimize plugins for Qt6. install_qt_plugins(QT_COMPONENTS QT_PLUGINS) |