On Thursday 26 July 2007 12:59, Christian Convey wrote: ... > So Alex provided this command-line: > cmake -DCMAKE_INSTALL_COMPONENT=Headers -P cmake_install.cmake > > I've seen "DESTDIR=..." used with "make install". Can I safely use it > (with the expected results) with the cmake command? For example: > > cmake -DDESTDIR=/some/path/ -DCMAKE_INSTALL_COMPONENT=Headers -P > cmake_install.cmake
I think the following should work (i.e. keep it an env. variable): DESTDIR=/path cmake -DCMAKE_INSTALL_COMPONENT=Headers -P cmake_install.cmake > > And more generally, can I usually assume that any Makefile variable > assignments that work with "make install", such as: > "make install FOO=BAR" > will have the same effect in this command? > "cmake -DFOO=BAR -P cmake_install.cmake" It should have the same effect, but I think it doesn't have a big effect on make install (since this does only cmake -P cmake_install.cmake). Just look at the cmake_install.cmake files, they are not that complicated. Bye Alex _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake