<div dir="ltr">Erika: On some Linux distributions, if you want to use the distributions's package manager, you need to install package "ninja-build" since "ninja" is some ancient database iirc. See <a href="https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages">https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages</a><div><br></div><div>`ninja --help` should print something like this:</div><div><div>$ ninja --help</div><div>usage: ninja [options] [targets...]</div><div><br></div><div>if targets are unspecified, builds the 'default' target (see manual).</div><div><br></div><div>options:</div><div> --version print ninja version ("1.7.2")</div><div><br></div><div> -C DIR change to DIR before doing anything else</div><div> -f FILE specify input build file [default=build.ninja]</div><div><br></div><div> -j N run N jobs in parallel [default=10, derived from CPUs available]</div><div> -k N keep going until N jobs fail [default=1]</div><div> -l N do not start new jobs if the load average is greater than N</div><div> -n dry run (don't run commands but act like they succeeded)</div><div> -v show all command lines while building</div><div><br></div><div> -d MODE enable debugging (use -d list to list modes)</div><div> -t TOOL run a subtool (use -t list to list subtools)</div><div> terminates toplevel options; further flags are passed to the tool</div><div> -w FLAG adjust warnings (use -w list to list warnings)</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 18, 2017 at 10:18 AM, Brian Cain via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Bringing this thread back onto the list, looks like we went off list at some point.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="m_-5906474004150077820gmail-HOEnZb"><div class="m_-5906474004150077820gmail-h5"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="m_-5906474004150077820gmail-m_-4991655120434373639HOEnZb"><div class="m_-5906474004150077820gmail-m_-4991655120434373639h5"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="m_-5906474004150077820gmail-m_-4991655120434373639m_4374003061014107539m_3348615170357721056HOEnZb"><div class="m_-5906474004150077820gmail-m_-4991655120434373639m_4374003061014107539m_3348615170357721056h5"><div class="gmail_extra"><div class="gmail_quote">On Apr 17, 2017 10:51 PM, "Erika Butler" <<a href="mailto:beneficii@gmail.com" target="_blank">beneficii@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">It's version 2.3 of ninja. This is the latest I could find for Windows.<div><br></div><div>I can't find the cmake version, but it was built on April 10, 2017, so I think that's new enough.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-17 20:46 GMT-07:00 Brian Cain <span dir="ltr"><<a href="mailto:brian.cain@gmail.com" target="_blank">brian.cain@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Not sure. Are you certain your version of ninja and cmake are new enough?</div><div class="m_-5906474004150077820gmail-m_-4991655120434373639m_4374003061014107539m_3348615170357721056m_-6616400841576022024m_-4752073125759043091HOEnZb"><div class="m_-5906474004150077820gmail-m_-4991655120434373639m_4374003061014107539m_3348615170357721056m_-6616400841576022024m_-4752073125759043091h5"><div class="gmail_extra"><br><div class="gmail_quote">On Apr 17, 2017 10:38 PM, "Erika Butler" <<a href="mailto:beneficii@gmail.com" target="_blank">beneficii@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I added the Ninja directory to my PATH variable and reopened the admin Command Prompt. I changed CMAKE_MAKE_PROGRAM to this:<div><br></div><div>-DCMAKE_MAKE_PROGRAM=ninja<br></div><div><br></div><div>I executed the command again, Ninja still reported an error, now saying in ninja.exe.log:</div><div><br></div><div><div>usage: ninja [-h] [-f file [file ...]] [-l lineno [lineno ...]]</div><div> [-p project [project ...]] [--plugin plugin [plugin ...]]</div><div> [--loglevel loglevel] [--logfile logfile]</div><div> [file [file ...]]</div><div>ninja: error: unrecognized arguments: --version</div></div><div><br></div><div>It seems cmake wants to pass a "--version" argument to its command to open ninja, which causes ninja to complain.</div><div><br></div><div>What can I do?</div><div></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">My ninja version is 1.3.4 and when I run "ninja --version" it reports "1.3.4". It does not give this error message. When I run "ninja --help" it shows something very different from the help message you're showing here.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://ninja-build.org/" target="_blank">https://ninja-build.org/</a> claims that the latest version available is "The last Ninja release is v1.7.2, released 7 Nov 2016." But you said you have version 2.3.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I think that you have another executable called "ninja" in your PATH. Can you check it? See if you get different results with binaries from here -- <a href="https://github.com/ninja-build/ninja/releases" target="_blank">https://github.com/ninja-<wbr>build/ninja/releases</a><br></div></div><div class="gmail_extra"><br><div class="m_-5906474004150077820gmail_signature">-Brian</div>
</div></div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>