<br><br><div class="gmail_quote">2009/4/29 Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wednesday 29 April 2009, Adolfo Rodríguez wrote:<br>
> Hello,<br>
><br>
> I'm using the COMPONENT option of the install command, and found myself not<br>
> knowing how to invoke the installation of only one component. Browsing the<br>
> list's archives, I found a 2006 post [1] that suggests doing the following:<br>
><br>
> make preinstall && cmake -DCOMPONENT=foo -P cmake_install.cmake<br>
<br>
</div>I think with CMake 2.6 preinstall is not necessary anymore (with 2.4 this does<br>
the relinking, which is replaced by directly replacing the RPATH inside the<br>
ELF executables).<br>
<div class="im"></div></blockquote><div><br>Thanks for the reply. I tried both alternatives --with and without invoking the preinstall target-- and noticed that if the cmake configuration is out of date, and needs to be regenerated, then executing only<br>
cmake -DCOMPONENT=foo -P cmake_install.cmake<br>won't trigger a run of cmake + make before the installation takes place. Since invoking make install _does_ run cmake + make if necessary, I prefer to have the same behavior and do <br>
<br>make preinstall && cmake -DCOMPONENT=foo -P cmake_install.cmake<br><br>I'm using cmake 2.6.3<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
> I tried it and it works, but I find it somewhat complicated for frequent<br>
> use. Is there an alternative way to invoke the installation of a particular<br>
> component? If not, my second option would be to create custom targets for<br>
> each of our (very few) component types (e.g., install_foo), any better<br>
> ideas?<br>
<br>
</div>No, not really.<br>
</blockquote><div>OK, will create a custom target for convenience purposes.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Alex<br>
</blockquote></div><br>Thanks!<br><br clear="all"><br>-- <br>Adolfo Rodríguez Tsouroukdissian<br>