[CMake] Re: Demonstrated CMake.. received a few comments

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jan 24 16:45:13 EST 2007


Von: kitts <kitts.mailinglists at gmail.com>

> On Wednesday 24 January 2007 02:15 IST, Claus Klein wrote:
> > On Tuesday 23 January 2007 18:10, kitts wrote:
> > > On Tuesday 23 January 2007 00:03 IST, kitts wrote:
> > > > 2) On windows, we would like to use VS as the IDE and KDevelop on
> > > > linux. Both are capable of crosscompiling (use non-native
> compilers).
> > > > I think this is only possible by setting CMAKE_C_COMPILER to the
> > > > compiler to use?
> > >
> > > I tested this today and alas, it doesn't work. :-(
> >
> > For me it works, but there are some points to know:
> >
> > cd ~/src/wzdftpd/trunk/build && rm -f CMakeCache.txt &&
> > + CC=/tools/LinuxPpcCDK/bin/powerpc-linux-gcc
> > + CXX=/tools/LinuxPpcCDK/bin/powerpc-linux-g++
> > + AR=/tools/LinuxPpcCDK/bin/powerpc-linux-ar
> > + PKG_CONFIG_PATH=/tools/LinuxPpcCDK/lib/pkgconfig
> > + CMAKE_LIBRARY_PATH=/tools/LinuxPpcCDK/lib:/tools/LinuxPpcCDK/usr/lib
> > +
> >
> CMAKE_INCLUDE_PATH=/tools/LinuxPpcCDK/include:/tools/LinuxPpcCDK/usr/incl
> >ude + cmake -DWITH_OpenSSL=ON -DWITH_TCLDev=OFF -DWITH_PerlDev=OFF
> > -DWITH_GnuTLS=OFF -DWITH_PostgreSQL=OFF -DWITH_MySQL=OFF
> > -DWITH_Zeroconf=OFF -DWITH_TESTS=OFF .. -- Check for working C 

Just out of interest, are you using the macro_optional_find_package() macro from KDE ?

Bye
Alex

-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail


More information about the CMake mailing list