[CMake] Simultaneous makes?

Chris Johnson cxjohnson at gmail.com
Wed Dec 24 12:07:02 EST 2014


Perhaps I need to clarify.

It's a very large project with many directories and interdependent
libraries.  So he is starting a make in one library, and then working on a
program in another subtree of the same project, and running a make there.

Since the entire project shares just one large build tree out-of-source,
both compiles share the same CMakeCache.txt and CMakeFiles/*.

This is not a case of "parallel" makes (-j N) started from one directory.

Thanks,
..chris

On Wed, Dec 24, 2014 at 10:22 AM, Rolf Eike Beer <eike at sf-mail.de> wrote:

> Am Mittwoch, 24. Dezember 2014, 10:17:07 schrieb Chris Johnson:
> > One of my co-workers likes to start multiple makes in various parts of
> his
> > project source tree.  Under our old Makefile-based, build-in-source
> system,
> > this worked fine. Under our new CMake-based, out-of-source build system,
> > this causes problems, since any make might cause CMake to rebuild its
> > internal files.
> >
> > Is this a "don't do that" problem, or can CMake be used in a manner where
> > it is smart enough not to step on its own toes?
>
> He should just use "make -j something".
>
> Eike
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141224/a0b843a6/attachment-0001.html>


More information about the CMake mailing list