|
@@ -45,6 +45,8 @@
|
|
|
# modifiable architecture-independent data (``com``)
|
|
# modifiable architecture-independent data (``com``)
|
|
|
# ``LOCALSTATEDIR``
|
|
# ``LOCALSTATEDIR``
|
|
|
# modifiable single-machine data (``var``)
|
|
# modifiable single-machine data (``var``)
|
|
|
|
|
+# ``RUNSTATEDIR``
|
|
|
|
|
+# run-time variable data (``LOCALSTATEDIR/run``)
|
|
|
# ``LIBDIR``
|
|
# ``LIBDIR``
|
|
|
# object code libraries (``lib`` or ``lib64``
|
|
# object code libraries (``lib`` or ``lib64``
|
|
|
# or ``lib/<multiarch-tuple>`` on Debian)
|
|
# or ``lib/<multiarch-tuple>`` on Debian)
|
|
@@ -75,10 +77,10 @@
|
|
|
#
|
|
#
|
|
|
# ``/``
|
|
# ``/``
|
|
|
#
|
|
#
|
|
|
-# For ``<dir>`` other than the ``SYSCONFDIR`` and ``LOCALSTATEDIR``,
|
|
|
|
|
-# the value of ``CMAKE_INSTALL_<dir>`` is prefixed with ``usr/`` if
|
|
|
|
|
-# it is not user-specified as an absolute path. For example, the
|
|
|
|
|
-# ``INCLUDEDIR`` value ``include`` becomes ``usr/include``.
|
|
|
|
|
|
|
+# For ``<dir>`` other than the ``SYSCONFDIR``, ``LOCALSTATEDIR`` and
|
|
|
|
|
+# ``RUNSTATEDIR``, the value of ``CMAKE_INSTALL_<dir>`` is prefixed
|
|
|
|
|
+# with ``usr/`` if it is not user-specified as an absolute path.
|
|
|
|
|
+# For example, the ``INCLUDEDIR`` value ``include`` becomes ``usr/include``.
|
|
|
# This is required by the `GNU Coding Standards`_, which state:
|
|
# This is required by the `GNU Coding Standards`_, which state:
|
|
|
#
|
|
#
|
|
|
# When building the complete GNU system, the prefix will be empty
|
|
# When building the complete GNU system, the prefix will be empty
|
|
@@ -86,20 +88,21 @@
|
|
|
#
|
|
#
|
|
|
# ``/usr``
|
|
# ``/usr``
|
|
|
#
|
|
#
|
|
|
-# For ``<dir>`` equal to ``SYSCONFDIR`` or ``LOCALSTATEDIR``, the
|
|
|
|
|
-# ``CMAKE_INSTALL_FULL_<dir>`` is computed by prepending just ``/``
|
|
|
|
|
-# to the value of ``CMAKE_INSTALL_<dir>`` if it is not user-specified
|
|
|
|
|
-# as an absolute path. For example, the ``SYSCONFDIR`` value ``etc``
|
|
|
|
|
-# becomes ``/etc``. This is required by the `GNU Coding Standards`_.
|
|
|
|
|
|
|
+# For ``<dir>`` equal to ``SYSCONFDIR``, ``LOCALSTATEDIR`` or
|
|
|
|
|
+# ``RUNSTATEDIR``, the ``CMAKE_INSTALL_FULL_<dir>`` is computed by
|
|
|
|
|
+# prepending just ``/`` to the value of ``CMAKE_INSTALL_<dir>``
|
|
|
|
|
+# if it is not user-specified as an absolute path.
|
|
|
|
|
+# For example, the ``SYSCONFDIR`` value ``etc`` becomes ``/etc``.
|
|
|
|
|
+# This is required by the `GNU Coding Standards`_.
|
|
|
#
|
|
#
|
|
|
# ``/opt/...``
|
|
# ``/opt/...``
|
|
|
#
|
|
#
|
|
|
-# For ``<dir>`` equal to ``SYSCONFDIR`` or ``LOCALSTATEDIR``, the
|
|
|
|
|
-# ``CMAKE_INSTALL_FULL_<dir>`` is computed by *appending* the prefix
|
|
|
|
|
-# to the value of ``CMAKE_INSTALL_<dir>`` if it is not user-specified
|
|
|
|
|
-# as an absolute path. For example, the ``SYSCONFDIR`` value ``etc``
|
|
|
|
|
-# becomes ``/etc/opt/...``. This is defined by the
|
|
|
|
|
-# `Filesystem Hierarchy Standard`_.
|
|
|
|
|
|
|
+# For ``<dir>`` equal to ``SYSCONFDIR``, ``LOCALSTATEDIR`` or
|
|
|
|
|
+# ``RUNSTATEDIR``, the ``CMAKE_INSTALL_FULL_<dir>`` is computed by
|
|
|
|
|
+# *appending* the prefix to the value of ``CMAKE_INSTALL_<dir>``
|
|
|
|
|
+# if it is not user-specified as an absolute path.
|
|
|
|
|
+# For example, the ``SYSCONFDIR`` value ``etc`` becomes ``/etc/opt/...``.
|
|
|
|
|
+# This is defined by the `Filesystem Hierarchy Standard`_.
|
|
|
#
|
|
#
|
|
|
# .. _`Filesystem Hierarchy Standard`: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
|
|
# .. _`Filesystem Hierarchy Standard`: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
|
|
|
#
|
|
#
|
|
@@ -287,6 +290,9 @@ _GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_LOCALEDIR "${CMAKE_INSTALL_DAT
|
|
|
_GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}"
|
|
_GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}"
|
|
|
"Documentation root (DATAROOTDIR/doc/PROJECT_NAME)")
|
|
"Documentation root (DATAROOTDIR/doc/PROJECT_NAME)")
|
|
|
|
|
|
|
|
|
|
+_GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_RUNSTATEDIR "${CMAKE_INSTALL_LOCALSTATEDIR}/run"
|
|
|
|
|
+ "Run-time variable data (LOCALSTATEDIR/run)")
|
|
|
|
|
+
|
|
|
#-----------------------------------------------------------------------------
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
mark_as_advanced(
|
|
mark_as_advanced(
|
|
@@ -296,6 +302,7 @@ mark_as_advanced(
|
|
|
CMAKE_INSTALL_SYSCONFDIR
|
|
CMAKE_INSTALL_SYSCONFDIR
|
|
|
CMAKE_INSTALL_SHAREDSTATEDIR
|
|
CMAKE_INSTALL_SHAREDSTATEDIR
|
|
|
CMAKE_INSTALL_LOCALSTATEDIR
|
|
CMAKE_INSTALL_LOCALSTATEDIR
|
|
|
|
|
+ CMAKE_INSTALL_RUNSTATEDIR
|
|
|
CMAKE_INSTALL_LIBDIR
|
|
CMAKE_INSTALL_LIBDIR
|
|
|
CMAKE_INSTALL_INCLUDEDIR
|
|
CMAKE_INSTALL_INCLUDEDIR
|
|
|
CMAKE_INSTALL_OLDINCLUDEDIR
|
|
CMAKE_INSTALL_OLDINCLUDEDIR
|
|
@@ -314,7 +321,7 @@ macro(GNUInstallDirs_get_absolute_install_dir absvar var)
|
|
|
# - CMAKE_INSTALL_PREFIX == /usr
|
|
# - CMAKE_INSTALL_PREFIX == /usr
|
|
|
# - CMAKE_INSTALL_PREFIX == /opt/...
|
|
# - CMAKE_INSTALL_PREFIX == /opt/...
|
|
|
if("${CMAKE_INSTALL_PREFIX}" STREQUAL "/")
|
|
if("${CMAKE_INSTALL_PREFIX}" STREQUAL "/")
|
|
|
- if("${dir}" STREQUAL "SYSCONFDIR" OR "${dir}" STREQUAL "LOCALSTATEDIR")
|
|
|
|
|
|
|
+ if("${dir}" STREQUAL "SYSCONFDIR" OR "${dir}" STREQUAL "LOCALSTATEDIR" OR "${dir}" STREQUAL "RUNSTATEDIR")
|
|
|
set(${absvar} "/${${var}}")
|
|
set(${absvar} "/${${var}}")
|
|
|
else()
|
|
else()
|
|
|
if (NOT "${${var}}" MATCHES "^usr/")
|
|
if (NOT "${${var}}" MATCHES "^usr/")
|
|
@@ -323,13 +330,13 @@ macro(GNUInstallDirs_get_absolute_install_dir absvar var)
|
|
|
set(${absvar} "/${${var}}")
|
|
set(${absvar} "/${${var}}")
|
|
|
endif()
|
|
endif()
|
|
|
elseif("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/?$")
|
|
elseif("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/?$")
|
|
|
- if("${dir}" STREQUAL "SYSCONFDIR" OR "${dir}" STREQUAL "LOCALSTATEDIR")
|
|
|
|
|
|
|
+ if("${dir}" STREQUAL "SYSCONFDIR" OR "${dir}" STREQUAL "LOCALSTATEDIR" OR "${dir}" STREQUAL "RUNSTATEDIR")
|
|
|
set(${absvar} "/${${var}}")
|
|
set(${absvar} "/${${var}}")
|
|
|
else()
|
|
else()
|
|
|
set(${absvar} "${CMAKE_INSTALL_PREFIX}/${${var}}")
|
|
set(${absvar} "${CMAKE_INSTALL_PREFIX}/${${var}}")
|
|
|
endif()
|
|
endif()
|
|
|
elseif("${CMAKE_INSTALL_PREFIX}" MATCHES "^/opt/.*")
|
|
elseif("${CMAKE_INSTALL_PREFIX}" MATCHES "^/opt/.*")
|
|
|
- if("${dir}" STREQUAL "SYSCONFDIR" OR "${dir}" STREQUAL "LOCALSTATEDIR")
|
|
|
|
|
|
|
+ if("${dir}" STREQUAL "SYSCONFDIR" OR "${dir}" STREQUAL "LOCALSTATEDIR" OR "${dir}" STREQUAL "RUNSTATEDIR")
|
|
|
set(${absvar} "/${${var}}${CMAKE_INSTALL_PREFIX}")
|
|
set(${absvar} "/${${var}}${CMAKE_INSTALL_PREFIX}")
|
|
|
else()
|
|
else()
|
|
|
set(${absvar} "${CMAKE_INSTALL_PREFIX}/${${var}}")
|
|
set(${absvar} "${CMAKE_INSTALL_PREFIX}/${${var}}")
|
|
@@ -351,6 +358,7 @@ foreach(dir
|
|
|
SYSCONFDIR
|
|
SYSCONFDIR
|
|
|
SHAREDSTATEDIR
|
|
SHAREDSTATEDIR
|
|
|
LOCALSTATEDIR
|
|
LOCALSTATEDIR
|
|
|
|
|
+ RUNSTATEDIR
|
|
|
LIBDIR
|
|
LIBDIR
|
|
|
INCLUDEDIR
|
|
INCLUDEDIR
|
|
|
OLDINCLUDEDIR
|
|
OLDINCLUDEDIR
|