Re: [CMake] error while stage install of crosscompiled binaries

2010-01-12 Thread Claus Klein
Alexander Neundorf schrieb: ... So indeed a relative CMAKE_INSTALL_PREFIX is interpreted relative to the build dir. Do you think this should be handled differently ? Then c:/usr would have to be translated at some point to "/c:/usr" if cross compiling on some UNIX. Would this make sense ? Al

Re: [CMake] error while stage install of crosscompiled binaries

2010-01-11 Thread Alexander Neundorf
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

Re: [CMake] error while stage install of crosscompiled binaries

2010-01-09 Thread Claus Klein
Hi all, now I got it: There are 3 different problems: 1.) never use an absolute DESTINATION path with INSTALL commands! ###XXX### INSTALL( FILES cmake/FindLibSmi.cmake DESTINATION $ {CMAKE_ROOT}/Modules ) 2.) never use an absolute source Path! ###XXX### INSTALL( FILES ${CMAKE_BINARY_DIR}/l

Re: [CMake] error while stage install of crosscompiled binaries

2010-01-08 Thread Claus Klein
Hi David, Yes, this works fine when I change the CMAKE_INSTALL_PREFIX at CMakeCache.txt, sure. There is only one fault: the config files will be rebuild with the wrong path before install :-(( At least, I know 2 packages, NetSnmp and LibSmi, they has to be compiled with fix absolute pa

Re: [CMake] error while stage install of crosscompiled binaries

2010-01-08 Thread David Cole
On Fri, Jan 8, 2010 at 12:37 AM, Claus Klein wrote: > > 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

Re: [CMake] error while stage install of crosscompiled binaries

2010-01-07 Thread Claus Klein
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 ins

[CMake] error while stage install of crosscompiled binaries

2010-01-06 Thread Claus Klein
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