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 ()