[Development] CMake Workshop Summary
Tor Arne Vestbø
Tor.arne.Vestbo at qt.io
Wed Feb 13 16:21:25 CET 2019
> On 13 Feb 2019, at 16:13, Kevin Funk <kevin.funk at kdab.com> wrote:
>
> 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?
I was thinking more along the lines of how Homebrew does it:
/usr/local/Cellar/qt/5.12/lib/cmake
/usr/local/Cellar/qt/6.0/lib/cmake
etc.
And you’d write
find_package(Qt 5.12 ...)
With the distro having a FindQt that knows about the versioned packages and will dispatch accordingly.
Or, when building a distro-spesific package foo that depends on qt 5.12, the distro would set CMAKE_PREFIX_PATH to the correct prefix.
I think the latter is what Homebrew does.
Tor Arne
More information about the Development
mailing list