On Mon, Oct 22, 2012 at 4:58 PM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>></span> wrote:<br><div class="gmail_quote"><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 Mon, Oct 22, 2012 at 3:22 AM, Petr Kmoch <<a href="mailto:petr.kmoch@gmail.com">petr.kmoch@gmail.com</a>> wrote:<br>
> Hi Andreas,<br>
><br>
> thanks for your tip. Unfortunately, 'make -k install' doesn't help, as the<br>
> entire install step is a single command (cmake -P ...), so once this fails,<br>
> there is no other command make could continue with. Is there no way to do<br>
> this natively in cmake?<br>
><br>
> I could (in theory) add OPTIONAL to all install() commands, but that has the<br>
> problem of being absolutely silent when a file is not found, and I'd need at<br>
> least a message or warning. Is cmake really all-or-nothing in this aspect,<br>
> or does anyone know a feature I'm overlooking?<br>
><br>
> Thanks for any help.<br>
><br>
> Petr<br>
><br>
><br>
> On Sat, Oct 20, 2012 at 12:46 PM, Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> wrote:<br>
>><br>
>> Hi,<br>
>><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.<br>
>> > 'make<br>
>> > install' or building the VS project INSTALL), the run terminates after<br>
>> > the<br>
>> > first failure (e.g. when it cannot find a file which is to be<br>
>> > installed). Is<br>
>> > there a way to globally change this behaviour so that the error is<br>
>> > reported<br>
>> > (perhaps as a warning), but the install step goes on?<br>
>><br>
>> 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>
>><br>
>> Andreas<br>
><br>
><br>
><br>
</div></div>> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
<br>
CMake is all-or-nothing with respect to an install tree. If the cmake<br>
install script hits a "FATAL_ERROR" message then it stops and will not<br>
continue beyond that point...<br>
<br>
The best way to "Continue install after a failure" is to eliminate the<br>
failure, and try again.<br></blockquote><div><br>Would you accept a patch giving control over this behaviour? Something like a boolean variable CMAKE_INSTALL_STOP_ON_ERROR (the default being TRUE, of course).<br><br>Petr<br>
</div></div>