[CMake] DESTDIR, CMAKE_INSTALL_PREFIX, rpath, dynamic libs

Darren Weber darren.weber.lists at gmail.com
Fri Apr 24 16:13:58 EDT 2009


In the cmake FAQ, it indicates that cmake will use the DESTDIR on the
command line as the root of the install path.
http://www.vtk.org/Wiki/CMake_FAQ (item 8.1, as of April 2009)

What is the level of precedence for this variable setting, with regard to
cache values that are set at the time of cmake configuration (using
-D<var>:<type>=<val>)?  That is, if cmake is called with something like
-DCMAKE_INSTALL_PREFIX:PATH=${prefix}, will 'gmake install
DESTDIR=${anotherPrefix}' use the cache variable setting for ${prefix} or
will it use the command line setting for ${anotherPrefix} when setting rpath
in dynamic libs.

Furthermore, what is the relationship between these variable settings for
the install path and, on OSX, the setting for CMAKE_INSTALL_NAME_DIR?  Does
this variable interact in any way with the DESTDIR command line setting (for
dynamic library builds)?

Thanks in advance,
Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090424/e1907b54/attachment.htm>


More information about the CMake mailing list