|
@@ -22,7 +22,9 @@ This module defines the following variables:
|
|
|
found. For backward compatibility, the ``HG_FOUND`` variable is also set
|
|
found. For backward compatibility, the ``HG_FOUND`` variable is also set
|
|
|
to the same value.
|
|
to the same value.
|
|
|
|
|
|
|
|
-``HG_VERSION_STRING``
|
|
|
|
|
|
|
+``Hg_VERSION``
|
|
|
|
|
+ .. versionadded:: 4.2
|
|
|
|
|
+
|
|
|
The version of Mercurial found.
|
|
The version of Mercurial found.
|
|
|
|
|
|
|
|
Cache Variables
|
|
Cache Variables
|
|
@@ -58,6 +60,15 @@ found:
|
|
|
``<var-prefix>_WC_REVISION``
|
|
``<var-prefix>_WC_REVISION``
|
|
|
Current revision.
|
|
Current revision.
|
|
|
|
|
|
|
|
|
|
+Deprecated Variables
|
|
|
|
|
+^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
+
|
|
|
|
|
+The following variables are provided for backward compatibility:
|
|
|
|
|
+
|
|
|
|
|
+``HG_VERSION_STRING``
|
|
|
|
|
+ .. deprecated:: 4.2
|
|
|
|
|
+ Use ``Hg_VERSION``, which has the same value.
|
|
|
|
|
+
|
|
|
Examples
|
|
Examples
|
|
|
^^^^^^^^
|
|
^^^^^^^^
|
|
|
|
|
|
|
@@ -103,7 +114,8 @@ if(HG_EXECUTABLE)
|
|
|
set_property(CACHE HG_EXECUTABLE PROPERTY VALUE "HG_EXECUTABLE-NOTFOUND")
|
|
set_property(CACHE HG_EXECUTABLE PROPERTY VALUE "HG_EXECUTABLE-NOTFOUND")
|
|
|
endif()
|
|
endif()
|
|
|
if(hg_version MATCHES "^Mercurial Distributed SCM \\(version ([0-9][^)]*)\\)")
|
|
if(hg_version MATCHES "^Mercurial Distributed SCM \\(version ([0-9][^)]*)\\)")
|
|
|
- set(HG_VERSION_STRING "${CMAKE_MATCH_1}")
|
|
|
|
|
|
|
+ set(Hg_VERSION "${CMAKE_MATCH_1}")
|
|
|
|
|
+ set(HG_VERSION_STRING "${Hg_VERSION}")
|
|
|
endif()
|
|
endif()
|
|
|
unset(hg_version)
|
|
unset(hg_version)
|
|
|
|
|
|
|
@@ -126,4 +138,4 @@ endif()
|
|
|
include(FindPackageHandleStandardArgs)
|
|
include(FindPackageHandleStandardArgs)
|
|
|
find_package_handle_standard_args(Hg
|
|
find_package_handle_standard_args(Hg
|
|
|
REQUIRED_VARS HG_EXECUTABLE
|
|
REQUIRED_VARS HG_EXECUTABLE
|
|
|
- VERSION_VAR HG_VERSION_STRING)
|
|
|
|
|
|
|
+ VERSION_VAR Hg_VERSION)
|