commit 00d59c17cdb1232e845d3776d0d392a14ab3c167
Author: P. De Visschere <pdvissch...@edpnet.be>
Date:   Sun Dec 31 15:30:12 2023 +0100

    cmake build with qt6 (macos) did not include "plugins"
    
    (cherry picked from commit 4d02fb7ad7a846bebfd8ba5fd37a5453482e768d)
---
 development/cmake/post_install/CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/development/cmake/post_install/CMakeLists.txt 
b/development/cmake/post_install/CMakeLists.txt
index f39bb5a763..56c552e4d0 100644
--- a/development/cmake/post_install/CMakeLists.txt
+++ b/development/cmake/post_install/CMakeLists.txt
@@ -48,6 +48,11 @@ if(LYX_BUNDLE)
        install_qt_plugin("${QtScope}::QCocoaIntegrationPlugin")
     endif()
 
+    if (APPLE AND LYX_USE_QT MATCHES "QT6")
+      # 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:
     # - Creates the qt.conf file
     # - install the platform specific plugins (with Qt5)
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to