[CMake] a cmake install question
Alexander Neundorf
a.neundorf-work at gmx.net
Mon May 28 06:15:27 EDT 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120528/afb911cd/attachment.htm>
More information about the CMake
mailing list