summaryrefslogtreecommitdiff
path: root/Modules/GNUInstallDirs.cmake
Commit message (Collapse)AuthorAgeFilesLines
* GNUInstallDirs: don't use lib64 on Alpine LinuxNatanael Copa2021-06-181-0/+1
| | | | Fixes: #22318
* Modules: Fix typos and spelling in commentsJosef Angstenberger2021-05-071-1/+1
|
* GNUInstallDirs: Clarify that CMAKE_INSTALL_<dir> may be absoluteBrad King2021-03-291-1/+4
| | | | Fixes: #21991
* Help: Add `.. versionadded` directives to module docsNikita Nemkin2020-12-021-1/+10
| | | | Issue: #19715
* GNUInstallDirs: Add dir argument to GNUInstallDirs_get_absolute_install_dirRoger Leigh2020-11-041-6/+23
| | | | Fixes: #21152
* GNUInstallDirs: Comply with Debian Policy on LIBEXECDIRDennis Klein2020-10-081-2/+13
| | | | | | | | | | | | If CMAKE_INSTALL_PREFIX is /usr, CMAKE_INSTALL_LIBEXECDIR shall return the same value as CMAKE_INSTALL_LIBDIR on Debian. While the FHS allows /usr/libexec for internal binaries (https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrlibexec) the Debian Policy Manual states an exception here (section 9.1.1 bullet point 4): https://www.debian.org/doc/debian-policy/ch-opersys#file-system-structure. Fixes: #21287
* GNUInstallDirs: Warn when CMAKE_SYSTEM_NAME is not setVitaly Lipatov2020-01-301-10/+9
| | | | | | If a project writes `include(GNUInstallDirs)` before `project()` then `CMAKE_SYSTEM_NAME` may not be set and an incorrect `LIBDIR` may be computed. Warn about this case.
* GNUInstallDirs: Keep 'lib' as default LIBDIR on Arch Linux based systemsAntonio Rojas2019-08-261-1/+2
| | | | Fixes: #15373
* GNUInstallDirs: Update FreeBSD "info" destination to share/infoTobias C. Berner2018-11-131-1/+1
| | | | | | | | | | | | | | FreeBSD ports commit r484628 (Install texinfo files (GNU info) into ${PREFIX}/share/info, 2018-11-10) changed the "info" destination from "info" to "share/info". The commit included a patch to their distribution of CMake to fix the `GNUInstallDirs` module too. Apply a similar logic change to our upstream version of the module. We already made a similar change for GNU/kFreeBSD in commit v3.13.0-rc2~8^2 (GNUInstallDirs: Don't use BSD info and man paths on GNU/kFreeBSD, 2018-10-21). Fixes: #18585
* GNUInstallDirs: Split "info" and "man" default logicBrad King2018-11-131-2/+6
| | | | The conditions may soon differ.
* Merge topic 'rst-block-comments'Brad King2018-10-231-121/+122
|\ | | | | | | | | | | | | | | | | 75f73dde0f Utilities/Scripts: Remove temporary block-style comment conversion script df4ed1e9ff Help: Convert remaining modules to block-style comments 7115aa6c22 Utilities/Scripts: Add temporary block-style comment conversion script Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2510
| * Help: Convert remaining modules to block-style commentsKitware Robot2018-10-221-121/+122
| |
* | GNUInstallDirs: Don't use BSD info and man paths on GNU/kFreeBSDJames Clarke2018-10-221-1/+1
|/
* GNUInstallDirs: Update link to 64-bit ABI documentsBrad King2017-11-271-1/+1
| | | | | Suggested-by: Chris Coutinho <chrisbcoutinho@gmail.com> Fixes: #17503
* GNUInstallDirs: Enable CMP0054Christian Pfeiffer2017-10-231-0/+5
| | | | Fixes: #17381
* GNUInstallDirs: Add RUNSTATEDIR variableFelix Geyer2017-04-201-18/+26
|
* GNUInstallDirs: Set UNINITALIZED cache properties to type PATHRoger Leigh2016-12-121-0/+17
| | | | Also convert the path to a cmake path
* GNUInstallDirs: Unify path logic into helper macrosRoger Leigh2016-12-121-66/+51
| | | | | | | | - Unify path handling: Rather than repeat the same logic for each individual path create two macros which can be used throughout the module. - Capitalise helpstrings to match the conventions used by the standard CMake properties
* Merge topic 'simplify-license-notices'Brad King2016-09-281-15/+3
|\ | | | | | | | | | | | | | | | | | | | | | | 19671831 Help: Update cmake-developer(7) module license docs for new notice 756169ac Tests: Update ModuleNotices test for new notice 845d86bc Utilities/Scripts: Remove temporary script that filtered license notices 86578ecc Simplify CMake per-source license notices b7180cfe Utilities/Scripts: Add temporary script to filter license notices 7feb4ecc Copyright.txt: Add notice of copyright by contributors 78f77f60 Utilities/KWStyle: Remove unused header check reference file 681e0429 Tests: Fix RunCMake.CTest output match to tolerate line number changes
| * Simplify CMake per-source license noticesBrad King2016-09-271-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* | GNUInstallDirs: All *BSDs use ${PREFIX}/{man,info} for man and info pagesDmitry Marakasov2016-09-271-1/+1
|/
* GNUInstallDirs: Add macro to expose internal logic publiclyRoger Leigh2016-09-071-30/+51
|
* GNUInstallDirs: Add special cases for certain prefixesAlex Turbov2015-06-181-3/+70
| | | | | | | | | Teach the module to handle SYSCONFDIR and LOCALSTATEDIR properly if CMAKE_INSTALL_PREFIX is set to `/` or `/usr` -- i.e. as expected by GNU Coding Standard (i.e. set SYSCONFDIR to `/etc` and `LOCALSTATEDIR` to `/var`). Also if CMAKE_INSTALL_PREFIX is set to /opt/pkg, `SYSCONFDIR` must be set to `/etc/opt/pkg` and `LOCALSTATEDIR` to `/var/opt/pkg` according to FHS.
* GNUInstallDirs: Improve documentation formattingBrad King2015-06-161-27/+32
| | | | Also consolidate the description of each variable.
* Modules: Format documentation to avoid over-long preformatted linesBrad King2014-10-221-23/+34
| | | | | | Convert several preformatted code block literals that enumerate lists of options or variables to use reST definition lists instead. Manually wrap other long lines in code blocks.
* Fix typo in Modules/GNUInstallDirs.cmake (#15176)David Coppa2014-09-291-2/+2
| | | | | Commit d4fdd9c189f85d659f4294f8ec6da3e7e51215ec ("GNUInstallDirs: use the proper default for info and man paths on OpenBSD") introduced a typo.
* GNUInstallDirs: use the proper default for info and man paths on OpenBSDRolf Eike Beer2014-05-201-8/+20
|
* GNUInstallDirs: Fix CMAKE_INSTALL_LIBDIR on DebianDaniele E. Domenichelli2014-01-151-5/+59
| | | | | | | | | | When not installing in /usr (i.e. /usr/local) on Debian/Ubuntu, the multiarch path is not in ldconfig path, and therefore libraries cannot be found, unless the user manually modifies the files in /etc/ld.so.conf.d, in order to include /usr/local/lib/<arch>. This patch fixes this issue by using "lib/<arch>" only if the user is installing the software in /usr, and uses "lib" in all the other cases.
* GNUInstallDirs: Use multiarch on Debian with FreeBSD and HURD kernelsDimitri John Ledkov2013-12-191-1/+1
|
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-26/+43
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* GNUInstallDirs: add support for Debian multiarchAlex Neundorf2011-12-141-12/+18
| | | | | | | This patch makes CMAKE_INSTALL_LIBDIR default to the debian multiarch dir if present, e.g. lib/i386-linux-gnu/ Alex
* Fix #11964 Handle lib64 library on LinuxEric NOULARD2011-03-311-2/+23
| | | | | | | | | | | | | | | | The AMD64 ABI document http://www.x86-64.org/documentation/abi.pdf does specify that 64bits binary libraries should end up in <prefix>/lib64 and 32bits ones in <prefix>/lib. All but debian based distros do so, and some like OpenSUSE even enforce the rule when packaging with RPM and refuse to build the RPM if this is not the case. After some discussion (see the bug notes) we cannot do that behind the scene and the current fix supposes that the user shall use the CMAKE_INSTALL_LIBDIR variables content in its INSTALL rules if he wants to put the lib in the right place. CMAKE_INSTALL_LIBDIR shall have the appropriate value depending on the Linux distribution found and 32/64bitness of the host. The cross-compiling case (even 32bits compile on a 64bits host) is not handled.
* GNUInstallDirs: Propagate DATAROOTDIR changes to dependent defaultsBrad King2011-03-231-10/+22
|
* GNUInstallDirs: Simplify and clarify documentationBrad King2011-02-281-47/+30
|
* Add GNUInstallDirs module to define GNU layout (#3976)Nikita Krupen'ko2011-02-281-0/+166
Provide CMAKE_INSTALL_* variables to help install files according to the GNU standard layout: http://www.gnu.org/prep/standards/html_node/Directory-Variables.html