<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 9, 2017 at 9:56 AM, Adam Getchell <span dir="ltr"><<a href="mailto:adam.getchell@gmail.com" target="_blank">adam.getchell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello all,<div><br></div><div>If I want to use CMake to invoke my build system, I can use:</div><div><br></div><div># cmake -- build .</div><div><br></div><div>What’s the syntax for invoking the build system installer from cmake, i.e. the equivalent of:</div><div><br></div><div># cmake -G Ninja .</div><div># ninja</div><div># ninja install</div><div><br></div><div>I tried:</div><div><br></div><div># cmake -G Ninja .</div><div># cmake --build .</div><div># cmake --build . --target install</div></div></blockquote><div><br></div><div>This should be correct. Did this not work for you?</div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>If its somewhere in the manual, I’d appreciate pointers.<br></div></div></blockquote><div><br></div><div>Which part were you looking for? The use of --target is documented as part of the <a href="https://cmake.org/cmake/help/git-master/manual/cmake.1.html#build-tool-mode">Build Tool Mode</a> section, but it seems you've already figured out that part. There's nothing technically special about the install target as far as I'm aware, you should be able to refer to it as a build target like you've done above.</div><div> </div></div><br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="https://crascit.com" target="_blank">https://crascit.com</a><br></div></div></div></div></div></div></div>
</div></div>