From df3ce126d68703f2f298cc00cd2f191cec922712 Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Tue, 23 Feb 2021 21:26:22 +0100 Subject: [PATCH] cmake: fixed unwind patch component match check --- cmake/FindUnwind.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/FindUnwind.cmake b/cmake/FindUnwind.cmake index 04d094d85..5010accfb 100644 --- a/cmake/FindUnwind.cmake +++ b/cmake/FindUnwind.cmake @@ -52,13 +52,13 @@ if (Unwind_LIBRARY) set (Unwind_VERSION ${Unwind_VERSION_MAJOR}.${Unwind_VERSION_MINOR}) - if (CMAKE_MATCH_1) + if (CMAKE_MATCH_0) # Third version component may be empty set (Unwind_VERSION ${Unwind_VERSION}.${Unwind_VERSION_PATCH}) set (Unwind_VERSION_COMPONENTS 3) - else (CMAKE_MATCH_1) + else (CMAKE_MATCH_0) set (Unwind_VERSION_COMPONENTS 2) - endif (CMAKE_MATCH_1) + endif (CMAKE_MATCH_0) endif (EXISTS ${_Unwind_VERSION_HEADER}) endif (Unwind_LIBRARY)