Michael Biebl
2006-04-10 20:51:51 UTC
With cmake 2.2 I get a very strange behaviour.
I use the following statement in my toplevel CMakeLists.txt file:
SET(CMAKE_INSTALL_PREFIX / CACHE INTERNAL "")
because I want to install the binaries to /sbin, /bin etc. by default.
A make install works fine, but if I run "make install
DESTDIR=/tmp/test" I get the following error message:
FILE called with network path DESTINATION. This does not make sense
when using DESTDIR. Specify local absolute path or remove DESTDIR
environment variable.
make: *** [install] Fehler 255
It seems that cmake doesn't like PATHS starting with two slashes:
//bin. One coming from CMAKE_INSTALL_PREFIX and the other from
INSTALL_TARGET(/bin ...)
Am I doing something wrong here? I seems to work with cmake-2.3.4 though.
Cheers,
Michael
I use the following statement in my toplevel CMakeLists.txt file:
SET(CMAKE_INSTALL_PREFIX / CACHE INTERNAL "")
because I want to install the binaries to /sbin, /bin etc. by default.
A make install works fine, but if I run "make install
DESTDIR=/tmp/test" I get the following error message:
FILE called with network path DESTINATION. This does not make sense
when using DESTDIR. Specify local absolute path or remove DESTDIR
environment variable.
make: *** [install] Fehler 255
It seems that cmake doesn't like PATHS starting with two slashes:
//bin. One coming from CMAKE_INSTALL_PREFIX and the other from
INSTALL_TARGET(/bin ...)
Am I doing something wrong here? I seems to work with cmake-2.3.4 though.
Cheers,
Michael