[CMake] FOSDEM Talk on CMake is available

Timenkov Yuri ytimenkov at parallels.com
Mon Apr 7 06:23:27 EDT 2008


On Thursday 03 April 2008 23:41:16 Filipe Sousa wrote:
> Alexander Neundorf wrote:
> > On Thursday 03 April 2008, Alan W. Irwin wrote:
> >
> > One prinicipal problem I see with pkg-config is that it is intended to be
> > used in such a way that the stdout is directly used as command line
> > arguments for the compiler.
> > E.g. instead of a list of include directories it just prints
> > -I/opt/foo/include -I/home/alex/install/include .
> > It does the same for other flags, which may be not that standard as -I
> > for include dirs. This breaks if you try to use the package with another
> > compiler than the one the pc-file was written for.
> > It would be so much better if it would store something like an xml file:
> > <include_dirs>
> >    <dir>/opt/foo/include</dir>
> >    <dir>/home/alex/install/include</dir>
> > </include_dirs>
> >
> > This would be independent from the syntax of the *command line arguments
> > of the compiler*.
>
> The same rules apply to cmake. It would be much better if cmake could
> export this information in xml so that others could easily get the
> information.
AFAIK CMake could export this information. May be not everything.
Anyways, I suppose it is possible, to write your own project generator or 
plugin for CMake which dumps necessary information in abstract XML-file.
And from my CMake experience I'm 90% sure this could be done with regular 
CMake scripts :)


More information about the CMake mailing list