<div dir="ltr">While in principle it does encourage better design; like using a LIST() and removing from that and just copying the correct things in the first place; it would have been nice it it wasn't always a show-stopper.<div>
<br></div><div>All it requires in 'make' files is a prefix of a '-' on the command; but I'm sure that would break other things; but since the platforms available for android to build are more limited it might be an ok hack... unless it got quoted for some reason</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 10, 2014 at 9:44 PM, David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If a custom command fails, it stops the build. It's equivalent to a failed compile of a source file.<br>
<br>
If you want to avoid it, then wrap the command in a script, and make the script eat the error, and return "success" to its caller.<br>
<br>
<br>
If you don't care if the command fails, then why are you running it at all? Wouldn't it be faster to run nothing, and pretend that "it ran, but failed..." ??<br>
<br>
;-)<div><div class="h5"><br>
<br>
<br>
<br>
-----Original Message-----<br>
From: J Decker <<a href="mailto:d3ck0r@gmail.com" target="_blank">d3ck0r@gmail.com</a>><br>
To: cmake <<a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a>><br>
Sent: Mon, Mar 10, 2014 11:52 pm<br>
Subject: [CMake] add_custom_command( NOT REQUIRED ) ?<br>
<br>
<br>
Is there no way to specify 'I don't care if this command fails?' since I don't have an OUTPUT anyway?<br>
<br>
<br>
the thing is, I had a copy(all in directory, including subdirectories) and I had an RM (things that don't belong) which included anything that was a directory, but it didn't have a -f option and I didn't really care if it was there (warn but don't stop? )<br>

<br>
<br></div></div>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more<br>
information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/<u></u>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/<u></u>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</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/<u></u>listinfo/cmake</a><br>
<br>
 </blockquote></div><br></div>