<div dir="ltr">Hi Eric,<br><br>The FILE(INSTALL command is an internal command used for install process. If there is a DESTDIR problem, then it is in the original CMake files that generate that file.<br><br>Andy<br><br><div class="gmail_quote">
On Tue, Oct 14, 2008 at 2:18 PM, Eric Noulard <span dir="ltr">&lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br>
<br>
I am using<br>
<br>
CONFIGURE_FILE(<a href="http://doc_install.in" target="_blank">doc_install.in</a> doc_install.cmake @ONLY)<br>
INSTALL(SCRIPT ${CMAKE_BINARY_DIR}/doc_install.cmake COMPONENT DOC)<br>
<br>
The doc_install.cmake contains CMake commands used to copy<br>
the result of Doxygen outputs (1 dir and 1 file)<br>
<br>
I discovered that my doc_install.cmake was broken when trying<br>
to build RPM or DEB package.<br>
<br>
because... the script did not handle DESTDIR.<br>
<br>
So I did have look at some CMake generated<br>
cmake_install.cmake for a target and saw:<br>
<br>
FILE(INSTALL DESTINATION &quot;${CMAKE_INSTALL_PREFIX}/bin&quot; TYPE EXECUTABLE<br>
FILES &quot;/my/build/tree/myapp&quot;)<br>
<br>
so nice I did<br>
<br>
cmake --help-command file<br>
<br>
and there is NO &nbsp;&quot;INSTALL&quot; for the FILE command?<br>
is the doc missing?<br>
do I miss something myself?<br>
<br>
In the end I manage to handle DESTDIR &nbsp;another way inside <a href="http://doc_install.in" target="_blank">doc_install.in</a> with:<br>
<br>
EXECUTE_PROCESS(COMMAND @CMAKE_COMMAND@ -E copy<br>
@DoxyTools_OUTPUT_DIR@/latex/refman.pdf<br>
$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/doc/certi/@DOCSET@/CERTI_@DOCSET@.pdf)<br>
<br>
But I still wonder if the undocumented FILE(INSTALL wouldn&#39;t be a<br>
better solution.<br>
<font color="#888888"><br>
--<br>
Erk<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Lets bike the world together<br><a href="http://legoandy.com">http://legoandy.com</a><br>
</div>