On Monday 28 May 2012, luxInteg wrote: > Greetings, > > A cmake install question:- > > When installing say an unknown package (one where only installation prefix > is described) appart from such $CMAKE_INSTALL_DIRECTORY (or prefix), > are there 'generic' swithes to fix other directories such as > --sysconfdir (normally /etc) --mandir (usually /usr/share/man) and -- > localstatedir (usually /var) ? > > Or does one have to make these settings either on the command line or in > the package; and in any case how so?
In general, except CMAKE_INSTALL_PREFIX, providing such switches is up to each individual package. Since verrsion 2.8.5 cmake ships with a GNUInstallDirs.cmake, which provides a set of install location variables: http://www.cmake.org/cmake/help/v2.8.5/cmake.html#module:GNUInstallDirs So if a package uses this, those are the variables which can be set. Any KDE package using cmake uses a standard set of variables, which can all be set via -D or cmake-gui: http://api.kde.org/cmake/modules.html#module_FindKDE4Internal LIB_INSTALL_DIR, BIN_INSTALL_DIR etc. Alex
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake