[CMake] Building for 2 platforms with 4 compilers

Kārlis Repsons k at 11.lv
Fri Apr 30 05:47:50 EDT 2010


On Friday 30 April 2010 09:35:46 Michael Wild wrote:
> On 30. Apr, 2010, at 11:16 , Kārlis Repsons wrote:
> > Good day in here,
> > I was trying to figure out how should CMake be used to automate building,
> > which can happen on two or more platforms with some 4 compilers to be
> > used in total, and should store the results in file tree like
> > $platform/$compiler or $platform/$compilerEnvironment. Could you please
> > suggest me how should it be done? Some example?
> >
> > (the idea is to store various builds with all of their intermediate files
> > in parallel both to test code against wider set of compilers and
> > platforms, some of which will be built with cross compiling environments)
> 
> Write a script that creates for each of the combinations a separate build
>  tree and then invokes CMake as appropriate. If you want to, you can also
>  use cache-initializer scripts (see the CMake documentation) to set common
>  options in the cache. Since you are building on multiple platforms
>  (presumably not cross-compiling), you'll want to write the script as a
>  CMake script (or Ruby, Python, Lua, whichever suits you best).
I think, I got the idea, but how can these three be completely separated: 
{sources and CMakeLists.txt files; CMake intermediate files and object files; 
useful binaries and headers}?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100430/99ffc82c/attachment.pgp>


More information about the CMake mailing list