diff options
author | Brad King <brad.king@kitware.com> | 2020-07-27 14:43:35 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-07-27 14:43:55 (GMT) |
commit | c1b60f94c95bd8d3a37cabe41e72e1b67297f94f (patch) | |
tree | a4d518111832a35e894e7c2176fe968845814c66 /Modules/FindXalanC.cmake | |
parent | 2cafbee76d1b168431f7de3f94105a52479c9717 (diff) | |
parent | 4bf102418bb1dbc93d9c6ce36dff5b5b1550df9c (diff) | |
download | CMake-c1b60f94c95bd8d3a37cabe41e72e1b67297f94f.zip CMake-c1b60f94c95bd8d3a37cabe41e72e1b67297f94f.tar.gz CMake-c1b60f94c95bd8d3a37cabe41e72e1b67297f94f.tar.bz2 |
Merge topic 'FindXalanC-1.12'
4bf102418b FindXalanC: Fix version parsing for XalanC 1.12
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5056
Diffstat (limited to 'Modules/FindXalanC.cmake')
-rw-r--r-- | Modules/FindXalanC.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindXalanC.cmake b/Modules/FindXalanC.cmake index ca9195c..a7fb766 100644 --- a/Modules/FindXalanC.cmake +++ b/Modules/FindXalanC.cmake @@ -49,9 +49,9 @@ The following cache variables may also be set: function(_XalanC_GET_VERSION version_hdr) file(STRINGS ${version_hdr} _contents REGEX "^[ \t]*#define XALAN_VERSION_.*") if(_contents) - string(REGEX REPLACE "[^*]*#define XALAN_VERSION_MAJOR[ \t]+([0-9]+).*" "\\1" XalanC_MAJOR "${_contents}") - string(REGEX REPLACE "[^*]*#define XALAN_VERSION_MINOR[ \t]+([0-9]+).*" "\\1" XalanC_MINOR "${_contents}") - string(REGEX REPLACE "[^*]*#define XALAN_VERSION_REVISION[ \t]+([0-9]+).*" "\\1" XalanC_PATCH "${_contents}") + string(REGEX REPLACE "[^*]*#define XALAN_VERSION_MAJOR[ \t(]+([0-9]+).*" "\\1" XalanC_MAJOR "${_contents}") + string(REGEX REPLACE "[^*]*#define XALAN_VERSION_MINOR[ \t(]+([0-9]+).*" "\\1" XalanC_MINOR "${_contents}") + string(REGEX REPLACE "[^*]*#define XALAN_VERSION_REVISION[ \t(]+([0-9]+).*" "\\1" XalanC_PATCH "${_contents}") if(NOT XalanC_MAJOR MATCHES "^[0-9]+$") message(FATAL_ERROR "Version parsing failed for XALAN_VERSION_MAJOR!") |