[CMake] makefile to CMakeLists.txt, possible?
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Fri Sep 3 15:33:09 EDT 2010
Am Freitag 03 September 2010, 21:19:28 schrieb Alexander Neundorf:
> On Friday 03 September 2010, Michael Jackson wrote:
> ...
>
> > I was just thinking about this the other day. One specialized area
> > that would be helped by threads would be in some project configuration
> > where we have CMake looking for about 20 different headers and another
> > 20 or so types. Generally none of this is dependent on the other.
> >
> > Something where I could have a
> >
> > "parallel_section()"/"end_parallel_section()" section where I could
> > list all the tests and CMake could run them in parallel if the builder
> > allows it or there are enough cpu resources available.
> >
> > Just a thought.
>
> Maybe really some parallel capability could be added specifically to the
> try_compile() command.
> Which calls cmMakefile::TryCompile(), which calls
> cmGlobalGenerator::TryCompile(), which ends up in
> cmGlobalGenerator::Build(), which finally calls
>
> if (!cmSystemTools::RunSingleCommand(command, outputPtr,
> &retVal, 0, verbose, timeout))
>
> Maybe just this one call could be put into threads somehow ?
>
A short non-representation 'valgrind -tool=callgrind cmake .' shows that when
no configure checks need to be done, 25 percent of the time is used for
strstr() / SystemTools::ReplaceString() ... wouldn't this be also a good
point to start optimizing?
Christian
More information about the CMake
mailing list