[CMake] cmake 2.2: make install PREFIX not working with
CMAKE_INSTALL_PREFIX set to "/"
Michael Biebl
mbiebl at gmail.com
Mon Apr 10 16:51:51 EDT 2006
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
More information about the CMake
mailing list