cmake build with qt6 (macos) does not include "plugins"
pdv
pdvisschere at edpnet.be
Sun Mar 19 19:45:55 UTC 2023
The merge branch killqt4 (commit 9376... on nov 28) broke the cmake
install build on macos.
The "development/cmake/post_install/CMakeLists.txt' SCRIPT checks for
qt5 and copies all plugins if different. This did work for qt4 but also
for qt6.
The killqt4 branch removed this else part for qt4 but also for qt6.
The included patch restores this else clause and only the comment has
been adapted (qt6 instead of qt4).
Since I don't know which plugins are actually needed I copied them all.
Regards,
P. De Visschere
-------------- next part --------------
diff --git a/development/cmake/post_install/CMakeLists.txt b/development/cmake/post_install/CMakeLists.txt
index 52a2f782af..dbd210d412 100644
--- a/development/cmake/post_install/CMakeLists.txt
+++ b/development/cmake/post_install/CMakeLists.txt
@@ -36,6 +36,10 @@ if(LYX_BUNDLE)
endif()
install_qt_plugin("Qt5::QCocoaIntegrationPlugin")
endif()
+ else()
+ # With QT6, just copy all the plugins
+ file(GLOB QT_PLUGIN_DIRECTORIES "${QT_PLUGINS_DIR}/*")
+ install(DIRECTORY ${QT_PLUGIN_DIRECTORIES} DESTINATION "${qtplugin_dest_dir}/plugins/" COMPONENT Runtime)
endif()
# Install code does the following:
More information about the lyx-devel
mailing list