cmake build with qt6 (macos) does not include "plugins"

Kornel Benko kornel at lyx.org
Sat Nov 11 17:07:14 UTC 2023


Am Sat, 11 Nov 2023 11:14:51 -0500
schrieb Scott Kostyshak <skostysh at lyx.org>:

> > diff --git a/development/cmake/post_install/CMakeLists.txt
> > b/development/cmake/post_install/CMakeLists.txt index 52a2f782af..f83cdaad0b 100644
> > --- a/development/cmake/post_install/CMakeLists.txt
> > +++ b/development/cmake/post_install/CMakeLists.txt
> > @@ -28,14 +28,18 @@ if(LYX_BUNDLE)
> >      endif()
> >  
> >      if(Qt5Core_FOUND)
> > -	file(GLOB QT_PLUGIN_DIRECTORIES "${QT_PLUGINS_DIR}/imageformats")
> > -	install(DIRECTORY ${QT_PLUGIN_DIRECTORIES} DESTINATION
> > "${qtplugin_dest_dir}/plugins/" COMPONENT Runtime REGEX "\\_debug\\.dylib$" EXCLUDE)
> > +       file(GLOB QT_PLUGIN_DIRECTORIES "${QT_PLUGINS_DIR}/imageformats")
> > +       install(DIRECTORY ${QT_PLUGIN_DIRECTORIES} DESTINATION
> > "${qtplugin_dest_dir}/plugins/" COMPONENT Runtime REGEX "\\_debug\\.dylib$" EXCLUDE)
> > if(APPLE) if(Qt5Core_VERSION VERSION_GREATER_EQUAL 5.10.0)
> >         			install_qt_plugin("Qt5::QMacStylePlugin")
> >         		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 REGEX "\\_debug\\.dylib$" EXCLUDE)
> > endif() 
> >      # Install code does the following:  
> 
> @Kornel seems like we might want this one in master?
> 
> Scott

Yes, I am only waiting for 2.4 be out. Nobody outside of MAC seems to use BUNDLE though.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20231111/41126457/attachment.asc>


More information about the lyx-devel mailing list