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

Scott Kostyshak skostysh at lyx.org
Sat Nov 11 21:19:53 UTC 2023


On Sat, Nov 11, 2023 at 06:07:14PM +0100, Kornel Benko wrote:
> 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.

Sounds good,

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20231111/fde8d357/attachment-0001.asc>


More information about the lyx-devel mailing list