FindPhonon.cmake - find debug and release configurations
Alexander Neundorf
neundorf at kde.org
Mon Jan 18 19:15:55 CET 2010
On Monday 18 January 2010, Pau Garcia i Quiles wrote:
> Hello,
>
> The attached patch makes FindPhonon.cmake find release and debug variants
> of the Phonon library. This is most useful on Windows. After applying this
> patch, release builds of KDE will link to the release variant of Phonon,
> and debug builds of KDE will link to the debug variant of Phonon.
>
> New variables (PHONON_LIBRARY_RELEASE, PHONON_LIBRARY_DEBUG) are introduced
> but they should never be used directly. If no debug variant of Phonon is
> found, PHONON_LIBS is set to the release version.
>
> For backwards compatibily, PHONON_LIBRARY is set to the value of
> PHONON_LIBRARY_RELEASE, although PHONON_LIBRARY should never have been used
> anywhere.
>
> We have been using this at work for some time now, both on Windows and
> Linux, and it works fine for us.
>
> Is it OK to commit?
Sorry, no.
Right now I'm in the process of getting the imported targets for the Qt4 libs
right, and once this is working perfectly, we should also use imported
targets for other Find-modules if they handle release- and debug-version of a
library.
Alex
More information about the Kde-buildsystem
mailing list