&#39;make install&#39; under the hood, by default, simply runs:<div><br></div><div>  cmake -P cmake_install.cmake</div><div><br></div><div>You could add your own custom target (which would NOT depend on &#39;all&#39;) to execute the same command, or simply execute the raw command yourself.<br>
<br></div><div>To do it with a custom target, you could do:</div><div><br></div><div>  add_custom_target(my_install</div><div>    ${CMAKE_COMMAND} -P cmake_install.cmake</div><div>    WORKING_DIRECTORY ${CMAKE_BINARY_DIR})</div>
<div><br></div><div>If you needed to ensure installed things were up-to-date first, you could depend on them explicitly with add_dependencies. Otherwise, &#39;make my_install&#39; will simply do the install step without making sure anything else is up to date first.</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Tue, Jun 19, 2012 at 3:42 PM, Leif Walsh <span dir="ltr">&lt;<a href="mailto:leif.walsh@gmail.com" target="_blank">leif.walsh@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div>How can I make it not do that?<br><br>Sent from my iPhone</div><div><div class="h5"><div><br>
On Jun 19, 2012, at 15:39, David Cole &lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>&#39;make install&#39; for a CMake-generated makefile is typically equivalent to &#39;make all &amp;&amp; make install&#39;<br>
<br><div>&#39;install&#39; depends on &#39;all&#39; and all typically includes things that are installed and not installed.<br>
<div><br></div><div><br><div class="gmail_quote">On Tue, Jun 19, 2012 at 3:11 PM, Leif Walsh <span dir="ltr">&lt;<a href="mailto:leif.walsh@gmail.com" target="_blank">leif.walsh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Why does `make install` build things that aren&#39;t installed?  I would<br>
imagine it would only build targets that are mentioned in INSTALL().<br>
<br>
--<br>
Cheers,<br>
Leif<br>
--<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 <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: <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>
</blockquote></div><br></div></div>
</div></blockquote></div></div></div></blockquote></div><br></div>