summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-01-07 14:52:44 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-07 21:10:07 (GMT)
commit2c5f30b4721d18d2ff39595021c3ee6ec2341a8e (patch)
treed1851436f99d9d828b93aca59b5af284a88ac947 /Source
parent3679b74a69151b246d0df329793dbeebfe9fdb66 (diff)
downloadCMake-2c5f30b4721d18d2ff39595021c3ee6ec2341a8e.zip
CMake-2c5f30b4721d18d2ff39595021c3ee6ec2341a8e.tar.gz
CMake-2c5f30b4721d18d2ff39595021c3ee6ec2341a8e.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')
-rw-r--r--Source/QtDialog/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt
index 452a303..f7d9b77 100644
--- a/Source/QtDialog/CMakeLists.txt
+++ b/Source/QtDialog/CMakeLists.txt
@@ -57,6 +57,9 @@ if(CMake_INSTALL_DEPENDENCIES AND (APPLE OR WIN32))
endmacro()
if(APPLE)
install_qt5_plugin("Qt5::QCocoaIntegrationPlugin" QT_PLUGINS)
+ if(TARGET Qt5::QMacStylePlugin)
+ install_qt5_plugin("Qt5::QMacStylePlugin" QT_PLUGINS)
+ endif()
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/qt.conf"
"[Paths]\nPlugins = ${_qt_plugin_dir}\n")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qt.conf"