[Development] CMake Workshop Summary

Kevin Funk kevin.funk at kdab.com
Wed Feb 13 16:13:06 CET 2019


On Wednesday, 13 February 2019 15:40:15 CET Tor Arne Vestbø wrote:
> > On 13 Feb 2019, at 14:58, Kevin Funk via Development
> > <development at qt-project.org> wrote:
 
> > make it more difficult for distros to co-install the CMake config files
> > for different Qt versions.
> 
> This sounds like a generally useful feature for distros to have, not just
> for major versions but for minor etc too? 

Hey,

No, I don't think so. The majority of distros will just have one install of a 
major version around, in the "default" prefix.

If I understand you correctly, then you'd like to have something like 
"Qt5.12Config.cmake" around? Would in turn require you to write this in your 
CMakeLists.txt as a user of Qt:
  
  find_package(Qt5.12 ...)

Would look a little heavy one the eye at least, and completely diminishes 
find_package's builtin capability to request a certain version via a 
parameter.

Anyhow, I think we're open to suggestions from distro maintainers, people who 
frequently have to deal with issues in that area to find a suitable solution.

> I guess you’d have to solve it manually today? Installing the package in a
> custom location and point cmake to the location so it can pick up the Qt
> cmake files?

Exactly, there's always the solution of installing Qt into a completely 
separate prefix, e.g. "/opt/qt5.12" -- with the drawback of requiring the user 
to set CMAKE_PREFIX_PATH to let CMake find Qt in the desired prefix.

Regards,
Kevin

 
> Tor Arne 
> 
> 
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development


-- 
Kevin Funk | kevin.funk at kdab.com | Senior Software Engineer
KDAB (Deutschland) GmbH, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5322 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20190213/37b49e0e/attachment.bin>


More information about the Development mailing list