<div class="gmail_quote">On Fri, Jan 8, 2010 at 12:37 AM, Claus Klein <span dir="ltr">&lt;<a href="mailto:claus.klein@arcormail.de">claus.klein@arcormail.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
On 08.01.2010, at 02:25, Alexander Neundorf wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Thursday 07 January 2010, Claus Klein wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
i want to install a cross compiled (build host is a MAC OS X) project<br>
to a temporary state dir to get an archive to distribute the binaries.<br>
The target is win32 (mingw), compiled to be installed at c:/usr as<br>
CMAKE_INSTALL_PREFIX.<br>
This prefix is used while compile the binaries, so I can&#39;t change it.<br>
<br>
I think, that when I use DESTDIR while &quot;make DESTDIR=/tmp/cmake<br>
install&quot;, the device (C:) should be removed before to use it as part<br>
of a path like this:<br>
<br>
STRING(REGEX REPLACE &quot;[A-Za-z:/]&quot; &quot;&quot; CMAKE_INSTALL_PREFIX &quot;$<br>
{CMAKE_INSTALL_PREFIX}&quot;)<br>
<br>
head cmake_install.cmake<br>
# Install script for directory: /Users/clausklein/Workspace/c/libsmi/<br>
trunk<br>
#<br>
# Set the install prefix<br>
IF(NOT DEFINED CMAKE_INSTALL_PREFIX)<br>
  SET(CMAKE_INSTALL_PREFIX &quot;C:/usr&quot;)<br>
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)<br>
STRING(REGEX REPLACE &quot;/$&quot; &quot;&quot; CMAKE_INSTALL_PREFIX &quot;$<br>
{CMAKE_INSTALL_PREFIX}&quot;)<br>
. . . .<br>
<br>
As you can see,  PREFIX is appended to DESDIR without modification.<br>
which is wrong in this special case.<br>
</blockquote>
<br></div>
Yes. So you would suggest to remove the drive letter from CMAKE_INSTALL_PREFIX<br>
when installing with DESTDIR set ?<br>
<br>
Alex<br>
</blockquote>
<br>
Yes<br>
<br>
I think it is never a valid path in this case to on Windows itself:<br>
<br>
i.e. C:/tmp/cmake/C:/usr/lib/pkgconfig<br>
<br>
I want to create a zip archive at /tmp/cmake to install it on Windows under C:/<br><font color="#888888">
<br>
Claus</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br><div><br></div><div>Can you try setting CMAKE_INSTALL_PREFIX to just &quot;/usr&quot; instead of &quot;C:/usr&quot; to see if you can get what you want in that manner...?</div><div><br>
</div>