[CMake] error while stage install of crosscompiled binaries
Claus Klein
claus.klein at arcormail.de
Tue Jan 12 16:14:56 EST 2010
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 ?
Alex
_____________________________
Hi Alex,
No, I think it is good as it is, but it is important to document this feature while crosscompiling!
For me it was unexpected. The build error was caused by another reason (DESTINATION or SOURCE was also absolute)
as I explained in my other response. In this case, the error was good.
The device prefix is also not a good idea in zip archives which should be extracted on Windows.
I wrote this
In case you crosscompile on an UNIX build host for a window target system(i.e. minGW):
.. Attention:: If a windows drive letter is given with CMAKE_INSTALL_PREFIX,
the files are installed under builddir/C:/usr/... when you do 'make install' only!
So create a zip archive from usr (without C:/) and it works on Windows XP, nice ;-)
For me the only open question is what happens in this case on windows?
But I work not on Windows if I have a choice.
Claus
More information about the CMake
mailing list