mirror of https://github.com/axmolengine/axmol.git
Fix FindHarfBuzz.cmake when version not match [ci build]
This commit is contained in:
parent
881c7672c8
commit
89957435da
|
@ -60,15 +60,16 @@ endif ()
|
|||
if ("${HarfBuzz_FIND_VERSION}" VERSION_GREATER "${HARFBUZZ_VERSION}")
|
||||
if (HarfBuzz_FIND_REQUIRED)
|
||||
message(FATAL_ERROR
|
||||
"Required version (" ${harfbuzz_FIND_VERSION} ")"
|
||||
"Required version (" ${HarfBuzz_FIND_VERSION} ")"
|
||||
" is higher than found version (" ${HARFBUZZ_VERSION} ")")
|
||||
else ()
|
||||
message(WARNING
|
||||
"Required version (" ${harfbuzz_FIND_VERSION} ")"
|
||||
"Required version (" ${HarfBuzz_FIND_VERSION} ")"
|
||||
" is higher than found version (" ${HARFBUZZ_VERSION} ")")
|
||||
unset(HARFBUZZ_VERSION)
|
||||
unset(HARFBUZZ_INCLUDE_DIRS)
|
||||
unset(HARFBUZZ_LIBRARIES)
|
||||
return ()
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
|
|
Loading…
Reference in New Issue