From 89957435dab91f772309914459e37e6b8d66d221 Mon Sep 17 00:00:00 2001 From: halx99 Date: Wed, 28 Apr 2021 17:04:04 +0800 Subject: [PATCH] Fix FindHarfBuzz.cmake when version not match [ci build] --- external/freetype/builds/cmake/FindHarfBuzz.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/external/freetype/builds/cmake/FindHarfBuzz.cmake b/external/freetype/builds/cmake/FindHarfBuzz.cmake index a062986554..e25736f04e 100644 --- a/external/freetype/builds/cmake/FindHarfBuzz.cmake +++ b/external/freetype/builds/cmake/FindHarfBuzz.cmake @@ -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 ()