[CMake] HowTo 'Getting Started Cross compilation with cmake' needed

Alexander Neundorf a.neundorf-work at gmx.net
Sat Jan 20 09:04:18 EST 2007


Hi,

Von: Peter Soetens <peter.soetens at fmtc.be>

...
> > I miss some features needed for cross-compiling, linking and
> > installing to
> > a stage dir. The PKGCONFIG(package includedir libdir linkflags
> > cflags),
> > for example, the --define-variable option can't be used.
> > pkg-config(1) support that:
> >
> > P3linux:/etc/apt # PKG_CONFIG_PATH=/tools/build_i386/root/lib/pkgconfig
> > pkg-config  --print-errors
> --define-variable=prefix=/tools/build_i386/root/
> > --cflags --libs dbus-1 -I/tools/build_i386/root//include/dbus-1.0
> > -I/tools/build_i386/root//lib/dbus-1.0/include 
> > -L/tools/build_i386/root//lib -ldbus-1
> >
> > P3linux:/etc/apt # pkg-config  --print-errors  --cflags --libs dbus-1
> > -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include 
> > -L/usr/local/lib -ldbus-1
> 
> I agree here as well. PKGCONFIG support in cmake is work in progress
> though.

Are you still using the "old" UsePkgconfig.cmake or did you already switch to find_package(PkgConfig), which is much more powerful ?

> > As a last point, it wout be nice if cmake generates  makefiles
> > according to:
> http://www.gnu.org/prep/standards/standards.html#Makefile-Conventions
> >
> > I think, most people expect this as common standard, or not?
> 
> This is a major issue (read:disagreement) on this list. I expected this
> as well, but the cmake team has their own reasoning.

Yes, and I don't see why anybody would be interested in the inner details of the makefiles.
The makefiles as they are currently generated are much superior to the ones generated by the GNU auto toolchain.
They are portable to different OS and different make's, and contain correct and complete dependencies, progress report, colored output, why should I care whether their contents conform to some GNU standard ?

Bye
Alex

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the CMake mailing list