On Mon, Oct 22, 2012 at 4:58 PM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt;</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 &lt;<a href="mailto:petr.kmoch@gmail.com">petr.kmoch@gmail.com</a>&gt; wrote:<br>
&gt; Hi Andreas,<br>
&gt;<br>
&gt; thanks for your tip. Unfortunately, &#39;make -k install&#39; doesn&#39;t help, as the<br>
&gt; entire install step is a single command (cmake -P ...), so once this fails,<br>
&gt; there is no other command make could continue with. Is there no way to do<br>
&gt; this natively in cmake?<br>
&gt;<br>
&gt; I could (in theory) add OPTIONAL to all install() commands, but that has the<br>
&gt; problem of being absolutely silent when a file is not found, and I&#39;d need at<br>
&gt; least a message or warning. Is cmake really all-or-nothing in this aspect,<br>
&gt; or does anyone know a feature I&#39;m overlooking?<br>
&gt;<br>
&gt; Thanks for any help.<br>
&gt;<br>
&gt; Petr<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Oct 20, 2012 at 12:46 PM, Andreas Pakulat &lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Oct 20, 2012 at 11:39 AM, Petr Kmoch &lt;<a href="mailto:petr.kmoch@gmail.com">petr.kmoch@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; when running the install step of a CMake-generated buildsystem (i.e.<br>
&gt;&gt; &gt; &#39;make<br>
&gt;&gt; &gt; install&#39; or building the VS project INSTALL), the run terminates after<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; first failure (e.g. when it cannot find a file which is to be<br>
&gt;&gt; &gt; installed). Is<br>
&gt;&gt; &gt; there a way to globally change this behaviour so that the error is<br>
&gt;&gt; &gt; reported<br>
&gt;&gt; &gt; (perhaps as a warning), but the install step goes on?<br>
&gt;&gt;<br>
&gt;&gt; For Makefile Generator you can run make -k install, that way make<br>
&gt;&gt; keeps on going even when errors occur. No idea about VS, NMake, Ninja<br>
&gt;&gt; or XCode generators probably depends on wether the respective tool has<br>
&gt;&gt; a switch for continuing if errors occur.<br>
&gt;&gt;<br>
&gt;&gt; Andreas<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <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 &quot;FATAL_ERROR&quot; message then it stops and will not<br>
continue beyond that point...<br>
<br>
The best way to &quot;Continue install after a failure&quot; 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>