On 08.01.2010, at 02:25, Alexander Neundorf wrote:

On Thursday 07 January 2010, Claus Klein wrote:
Hi

i want to install a cross compiled (build host is a MAC OS X) project
to a temporary state dir to get an archive to distribute the binaries.
The target is win32 (mingw), compiled to be installed at c:/usr as
CMAKE_INSTALL_PREFIX.
This prefix is used while compile the binaries, so I can't change it.

I think, that when I use DESTDIR while "make DESTDIR=/tmp/cmake
install", the device (C:) should be removed before to use it as part
of a path like this:

STRING(REGEX REPLACE "[A-Za-z:/]" "" CMAKE_INSTALL_PREFIX "$
{CMAKE_INSTALL_PREFIX}")

head cmake_install.cmake
# Install script for directory: /Users/clausklein/Workspace/c/libsmi/
trunk
#
# Set the install prefix
IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
  SET(CMAKE_INSTALL_PREFIX "C:/usr")
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "$
{CMAKE_INSTALL_PREFIX}")
. . . .

As you can see,  PREFIX is appended to DESDIR without modification.
which is wrong in this special case.

Yes. So you would suggest to remove the drive letter from CMAKE_INSTALL_PREFIX
when installing with DESTDIR set ?

Alex

Yes

I think it is never a valid path in this case to on Windows itself:

i.e. C:/tmp/cmake/C:/usr/lib/pkgconfig

I want to create a zip archive at /tmp/cmake to install it on Windows under C:/

Claus

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to