cmake: fixed unwind patch component match check
This commit is contained in:
parent
246e49ac48
commit
df3ce126d6
@ -52,13 +52,13 @@ if (Unwind_LIBRARY)
|
|||||||
|
|
||||||
set (Unwind_VERSION ${Unwind_VERSION_MAJOR}.${Unwind_VERSION_MINOR})
|
set (Unwind_VERSION ${Unwind_VERSION_MAJOR}.${Unwind_VERSION_MINOR})
|
||||||
|
|
||||||
if (CMAKE_MATCH_1)
|
if (CMAKE_MATCH_0)
|
||||||
# Third version component may be empty
|
# Third version component may be empty
|
||||||
set (Unwind_VERSION ${Unwind_VERSION}.${Unwind_VERSION_PATCH})
|
set (Unwind_VERSION ${Unwind_VERSION}.${Unwind_VERSION_PATCH})
|
||||||
set (Unwind_VERSION_COMPONENTS 3)
|
set (Unwind_VERSION_COMPONENTS 3)
|
||||||
else (CMAKE_MATCH_1)
|
else (CMAKE_MATCH_0)
|
||||||
set (Unwind_VERSION_COMPONENTS 2)
|
set (Unwind_VERSION_COMPONENTS 2)
|
||||||
endif (CMAKE_MATCH_1)
|
endif (CMAKE_MATCH_0)
|
||||||
endif (EXISTS ${_Unwind_VERSION_HEADER})
|
endif (EXISTS ${_Unwind_VERSION_HEADER})
|
||||||
endif (Unwind_LIBRARY)
|
endif (Unwind_LIBRARY)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user