FINDKDE4 win32

David Faure faure at kde.org
Fri May 5 12:18:51 CEST 2006


On Friday 05 May 2006 11:18, Paulo Jorge Guedes wrote:
> > -----Original Message-----
> > From: David Faure [mailto:faure at kde.org]
> > Sent: quinta-feira, 4 de Maio de 2006 18:13
> > To: kde-buildsystem at kde.org
> > Subject: Re: FINDKDE4 win32
> > 
> > On Thursday 04 May 2006 19:03, Paulo Jorge Guedes wrote:
> > > +   if (!WIN32)
> > > +      find_library(KDE4_KDESU_LIBRARY NAMES kdesu PATHS
> > > ${KDE4_LIB_INSTALL_DIR} NO_DEFAULT_PATH )
> > > +      set(KDE4_KDESU_LIBS ${kdesu_LIB_DEPENDS} ${KDE4_KDESU_LIBRARY} )
> > > +   endif (!WIN32)
> > 
> > I would even say if(UNIX) since the notion of "su"ing is very unix-like.
> > Not that I have a non-windows non-unix case in mind right now to find out
> > what's best ;)
> > 
> > Anyway never use WIN32 for such things, since WIN64 exists too.
> 
> There is if (WIN32) all over the code though :(
> 
> What sould one use, (WIN32 || WIN64)?

For code that is executed after the Qt detection, you can use if(Q_WS_WIN)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the Kde-buildsystem mailing list