<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Aug 2, 2017 at 8:12 AM, DKLind <span dir="ltr"><<a href="mailto:davidklind@gmail.com" target="_blank">davidklind@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is it possible to replace the default target of the "Unix Makefiles" generated Makefile of 'all' with 'help'? By default, I mean when no target is specified when invoking 'make', the 'all' target is assumed.
</blockquote><div><br></div><div>Because cmake works with so many targets, it's unlikely this would be of much use; ninja itself has ability to specify default target, but that's not available from CMake; also generators like Visual Studio, et al.  don't have 'all' they have ALL_BUILD and no 'help' target.</div><div><br></div><div><a href="https://cmake.org/cmake/help/v3.0/command/build_command.html">https://cmake.org/cmake/help/v3.0/command/build_command.html</a></div><div>I suppose you could wrap your CMakeLists in another that checks $<target> and if not set, then trigger cmake --build with --target help....</div><div><br></div><div>that's probably a really bad idea in general though.</div><div><br></div><div>If someone is using cmake to build though; one would think they would just 'know' that make help is a thing to do...   </div><div><br></div><div>Or - why would you want your one project to behave any different than all the others in the world? (or perhaps a nicer phrasing)  Why do you want to do this?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://cmake.3232098.n2.nabble.com/Replace-default-make-all-with-make-help-tp7595988.html" target="_blank">Replace default "make all" with "make help"</a><br>
Sent from the <a href="http://cmake.3232098.n2.nabble.com/" target="_blank">CMake mailing list archive</a> at Nabble.com.<br><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br></blockquote></div><br></div></div>