<br><br><div class="gmail_quote">On Thu, Jul 19, 2012 at 10:27 AM, Alan W. Irwin <span dir="ltr"><<a href="mailto:irwin@beluga.phys.uvic.ca" target="_blank">irwin@beluga.phys.uvic.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 2012-07-19 09:04+0200 Nicolas Desprès wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Jul 19, 2012 at 7:33 AM, Alan W. Irwin <<a href="mailto:irwin@beluga.phys.uvic.ca" target="_blank">irwin@beluga.phys.uvic.ca</a>><u></u>wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There has been a lot of traffic here concerning the CMake Ninja<br>
backend for more than a year with some claims that that combination is<br>
now working pretty well on all platforms. Therefore, my curiosity has<br>
been aroused even though I am fairly satisfied with the CMake Make<br>
backend. So I would like to try out CMake with the Ninja backend for<br>
my favorite CMake-based software build (PLplot).<br>
<br>
I have some newbie questions about the Ninja backend.<br>
<br>
What versions of CMake and Ninja work well together on both the Linux<br>
and the Windows platforms? (My fundamental platform is Linux, but I<br>
also sometimes test CMake-based builds on the Wine variant of<br>
Windows.) Has Ninja been officially released so we can talk about an<br>
official version for it or are there just git snapshots available? If<br>
the latter, I am not that familiar with git so could somebody give me<br>
the appropriate git clone command to download the source, and also the<br>
git command to let me know exactly what source snapshot version I am<br>
working with?<br>
<br>
</blockquote>
<br>
See <a href="http://www.cmake.org/Wiki/CMake/Git" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake/Git</a><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Are there any Ninja caveats? For example, does Ninja allow parallel<br>
builds? What are the Ninja strengths compared to Make? I understand<br>
that rebuilds with just a few (or no) files changed should be faster<br>
with Ninja, but how about builds from scratch?<br>
<br>
</blockquote>
<br>
See <a href="http://martine.github.com/ninja/manual.html" target="_blank">http://martine.github.com/<u></u>ninja/manual.html</a><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I know how to build CMake, but can somebody give concise build<br>
instructions for Ninja? For example, is there a CMake-based<br>
build system for Ninja itself that works with the Make backend<br>
for CMake?<br>
<br>
</blockquote>
<br>
Follow the instruction in the HACKING file there git://<br>
<a href="http://github.com/martine/ninja.git" target="_blank">github.com/martine/ninja.git</a><br>
<br>
There are also CMake based build-system in some of the fork of this<br>
project. Here is one of them: git://<a href="http://github.com/syntheticpp/ninja.git" target="_blank">github.com/syntheticpp/<u></u>ninja.git</a><br>
<br>
</blockquote>
<br></div></div>
Thanks, Nicolas, for the useful general background information on git<br>
and Ninja, but I also need some specifics. For example, does the<br>
version of Ninja at git://<a href="http://github.com/martine/ninja.git" target="_blank">github.com/martine/<u></u>ninja.git</a> work well as a<br>
backend for CMake for _both_ Linux and Windows? If so, what minimum<br>
version of CMake is required?</blockquote><div><br></div><div>As far as I know the last official release of CMake supports Ninja backend for both Linux and Windows. Martine's Ninja is the official repository. Although I am sure it works for Linux, I cannot guaranty it for Windows but I am almost sure. Try it :-)</div>
<div><br></div></div>-- <br>Nicolas Desprès<br><br>