From 9edb5f57127489dec4b7cbdc1e60920e6002abea Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Sun, 12 Jun 2022 16:13:22 +0200 Subject: API dox: use more markup for code or commandline samples NO_CHANGELOG --- modules/ECMSetupVersion.cmake | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'modules/ECMSetupVersion.cmake') diff --git a/modules/ECMSetupVersion.cmake b/modules/ECMSetupVersion.cmake index 73b71ed1..330f7365 100644 --- a/modules/ECMSetupVersion.cmake +++ b/modules/ECMSetupVersion.cmake @@ -36,7 +36,7 @@ version of ECM is < 5.83):: _VERSION_STRING - (use _VERSION instead) -If CMake policy CMP0048 is not NEW, the following CMake variables will also +If CMake policy CMP0048 is not ``NEW``, the following CMake variables will also be set:: PROJECT_VERSION_MAJOR - @@ -44,14 +44,14 @@ be set:: PROJECT_VERSION_PATCH - PROJECT_VERSION - -For backward-compatibility, if CMake policy CMP0048 is not NEW, also this variable is set +For backward-compatibility, if CMake policy CMP0048 is not ``NEW``, also this variable is set (only if the minimum required version of ECM is < 5.83):: PROJECT_VERSION_STRING - (use PROJECT_VERSION instead) -If the VERSION_HEADER option is used, a simple C header is generated with the +If the ``VERSION_HEADER`` option is used, a simple C header is generated with the given filename. If filename is a relative path, it is interpreted as relative -to CMAKE_CURRENT_BINARY_DIR. The generated header contains the following +to ``CMAKE_CURRENT_BINARY_DIR``. The generated header contains the following macros:: _VERSION_MAJOR - as an integer @@ -64,15 +64,15 @@ macros:: next 8 bits and ```` in the remaining bits. Note that ```` and ```` must be less than 256. -If the PACKAGE_VERSION_FILE option is used, a simple CMake package version -file is created using the write_basic_package_version_file() macro provided by +If the ``PACKAGE_VERSION_FILE`` option is used, a simple CMake package version +file is created using the ``write_basic_package_version_file()`` macro provided by CMake. It should be installed in the same location as the Config.cmake file of -the library so that it can be found by find_package(). If the filename is a -relative path, it is interpreted as relative to CMAKE_CURRENT_BINARY_DIR. The -optional COMPATIBILITY option is forwarded to -write_basic_package_version_file(), and defaults to AnyNewerVersion. +the library so that it can be found by ``find_package()``. If the filename is a +relative path, it is interpreted as relative to ``CMAKE_CURRENT_BINARY_DIR``. The +optional ``COMPATIBILITY`` option is forwarded to +``write_basic_package_version_file()``, and defaults to ``AnyNewerVersion``. -If CMake policy CMP0048 is NEW, an alternative form of the command is +If CMake policy CMP0048 is ``NEW``, an alternative form of the command is available:: ecm_setup_version(PROJECT @@ -81,14 +81,14 @@ available:: [VERSION_HEADER ] [PACKAGE_VERSION_FILE ] ) -This will use the version information set by the project() command. -VARIABLE_PREFIX defaults to the project name. Note that PROJECT must be the +This will use the version information set by the ``project()`` command. +``VARIABLE_PREFIX`` defaults to the project name. Note that ``PROJECT`` must be the first argument. In all other respects, it behaves like the other form of the command. Since pre-1.0.0. -COMPATIBILITY option available since 1.6.0. +``COMPATIBILITY`` option available since 1.6.0. #]=======================================================================] include(CMakePackageConfigHelpers) -- cgit v1.2.1