[Gammaray-interest] Fwd: building GammaRay on OS X
Kevin Funk
kevin.funk at kdab.com
Fri May 29 09:32:41 CEST 2015
On Thursday 28 May 2015 23:07:25 René J.V. Bertin wrote:
> On Thursday May 28 2015 16:47:44 Allen Winter wrote:
> > interesting. we had a similar bug report recently for a Windows build
> > that got hit by the VTK stuff. but I think he had the opposite; ie. if
> > VTK is found then a Qt4 build was forced..
> Yes, I'd expect the opposite effect to arise if you have VTK built for Qt4
> and try to build the Qt5 probe.
> > looking at the bottom of /usr/lib64/cmake/vtk/VTKConfig.cmake I see:
> > SET(VTK_QT_VERSION "4")
>
> Mine says "5" instead. Figures.
>
> > seems we need to check VTK_QT_VERSION in our top-level CMakeLists.txt
> > then.
> > if building with qt5 and VTK_QT_VERSION is 4, then we turn-off vtk support
> > and vice-versa
>
> The question is if you can do that without finding the package first, which
> will still mess up the Qt settings if they don't match?
> > oh, another trick you can use to turnoff VTK is
> > passing -DCMAKE_DISABLE_FIND_PACKAGE_VTK=True to cmake
>
> Now that's a nice trick, thanks! Does that work for any package?
Yes.
https://blogs.kde.org/2011/11/11/cool-new-stuff-cmake-286-3-standard-way-disable-optional-packages
> René
> _______________________________________________
> Gammaray-interest mailing list
> Gammaray-interest at mail.kdab.com
> https://mail.kdab.com/mailman/listinfo/gammaray-interest
--
Kevin Funk | kevin.funk at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7021 bytes
Desc: not available
URL: <http://mail.kdab.com/pipermail/gammaray-interest/attachments/20150529/c5d33839/attachment-0001.p7s>
More information about the Gammaray-interest
mailing list