Nikolaus Waxweiler pushed to branch update-cmake-dep-finders at FreeType / FreeType
Commits:
-
4dbd244a
by HALX99 at 2021-05-16T11:20:50+01:00
1 changed file:
Changes:
... | ... | @@ -91,7 +91,19 @@ if (HarfBuzz_INCLUDE_DIR AND NOT HarfBuzz_VERSION) |
91 | 91 |
endif ()
|
92 | 92 |
|
93 | 93 |
if ("${HarfBuzz_FIND_VERSION}" VERSION_GREATER "${HarfBuzz_VERSION}")
|
94 |
- message(FATAL_ERROR "Required version (" ${HarfBuzz_FIND_VERSION} ") is higher than found version (" ${HarfBuzz_VERSION} ")")
|
|
94 |
+ if (HarfBuzz_FIND_REQUIRED)
|
|
95 |
+ message(FATAL_ERROR
|
|
96 |
+ "Required version (" ${HarfBuzz_FIND_VERSION} ")"
|
|
97 |
+ " is higher than found version (" ${HarfBuzz_VERSION} ")")
|
|
98 |
+ else ()
|
|
99 |
+ message(WARNING
|
|
100 |
+ "Required version (" ${HarfBuzz_FIND_VERSION} ")"
|
|
101 |
+ " is higher than found version (" ${HarfBuzz_VERSION} ")")
|
|
102 |
+ unset(HarfBuzz_VERSION)
|
|
103 |
+ unset(HarfBuzz_INCLUDE_DIRS)
|
|
104 |
+ unset(HarfBuzz_LIBRARIES)
|
|
105 |
+ return ()
|
|
106 |
+ endif ()
|
|
95 | 107 |
endif ()
|
96 | 108 |
|
97 | 109 |
# Find components
|