Skip to content

Commit

Permalink
cmake: fixed unwind patch component match check
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Feb 23, 2021
1 parent 246e49a commit df3ce12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/FindUnwind.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit df3ce12

Please sign in to comment.