freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][update-cmake-dep-finders] Fix FindHarfBuzz.cmak


From: Nikolaus Waxweiler (@madig)
Subject: [Git][freetype/freetype][update-cmake-dep-finders] Fix FindHarfBuzz.cmake doesn't hand min required version properly.
Date: Sun, 16 May 2021 10:22:26 +0000

Nikolaus Waxweiler pushed to branch update-cmake-dep-finders at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • builds/cmake/FindHarfBuzz.cmake
    ... ... @@ -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
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]