Use default CMake path variables
[alexxy/gromacs.git] / docs / dev-manual / build-system.rst
index 459a9a737a530df137b81c38035be4afa483f8c4..dd6a69a5a0d7a51b25b2d1933351cf23cb1ff645 100644 (file)
@@ -208,11 +208,12 @@ Variables affecting compilation/linking
    subcounters which are available.
    Defaults to ``OFF``.
 
-.. cmake:: GMX_DATA_INSTALL_DIR
+.. cmake:: GMX_INSTALL_DATASUBDIR
 
-   Sets the directory under :file:`share/` where data files are installed.
-   The default is ``gromacs``, which puts the files under
-   file:`share/gromacs/`.
+   Sets the subdirectory under CMAKE_INSTALL_DATADIR where GROMACS-specific
+   read-only architecture-independent data files are installed. The default
+   is ``gromacs``, which means the files will go under ``share/gromacs``.
+   To alter the ``share`` part, change CMAKE_INSTALL_DATADIR.
    See :doc:`relocatable-binaries` for how this influences the build.
 
 .. cmake:: GMX_DOUBLE
@@ -265,7 +266,7 @@ Variables affecting compilation/linking
 
     Pass additional CUDA-only compiler flags to clang using this variable.
 
-.. cmake:: GMX_LIB_INSTALL_DIR
+.. cmake:: CMAKE_INSTALL_LIBDIR
 
    Sets the installation directory for libraries (default is determined by
    standard CMake package ``GNUInstallDirs``).