Hi Andreas,<br><br>thanks for your tip. Unfortunately, 'make -k install' doesn't help, as the entire install step is a single command (cmake -P ...), so once this fails, there is no other command make could continue with. Is there no way to do this natively in cmake?<br>
<br>I could (in theory) add OPTIONAL to all install() commands, but that has the problem of being absolutely silent when a file is not found, and I'd need at least a message or warning. Is cmake really all-or-nothing in this aspect, or does anyone know a feature I'm overlooking?<br>
<br>Thanks for any help.<br><br>Petr<br><br><div class="gmail_quote">On Sat, Oct 20, 2012 at 12:46 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de" target="_blank">apaku@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><div class="h5"><br>
On Sat, Oct 20, 2012 at 11:39 AM, Petr Kmoch <<a href="mailto:petr.kmoch@gmail.com">petr.kmoch@gmail.com</a>> wrote:<br>
> when running the install step of a CMake-generated buildsystem (i.e. 'make<br>
> install' or building the VS project INSTALL), the run terminates after the<br>
> first failure (e.g. when it cannot find a file which is to be installed). Is<br>
> there a way to globally change this behaviour so that the error is reported<br>
> (perhaps as a warning), but the install step goes on?<br>
<br>
</div></div>For Makefile Generator you can run make -k install, that way make<br>
keeps on going even when errors occur. No idea about VS, NMake, Ninja<br>
or XCode generators probably depends on wether the respective tool has<br>
a switch for continuing if errors occur.<br>
<span class="HOEnZb"><font color="#888888"><br>
Andreas<br>
</font></span></blockquote></div><br>