freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] update-cmake-dep-finders b30e6dd 2/2: Fix warnings in FindBr


From: Werner Lemberg
Subject: [freetype2] update-cmake-dep-finders b30e6dd 2/2: Fix warnings in FindBrotliDec.cmake
Date: Sat, 15 May 2021 17:37:09 -0400 (EDT)

branch: update-cmake-dep-finders
commit b30e6dd6d4bfc39eb6e315b5364ad3ec352c28fc
Author: Nikolaus Waxweiler <madigens@gmail.com>
Commit: Nikolaus Waxweiler <madigens@gmail.com>

    Fix warnings in FindBrotliDec.cmake
    
    Used
    https://github.com/google/woff2/blob/master/cmake/FindBrotliDec.cmake
    as inspiration
---
 builds/cmake/FindBrotliDec.cmake | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/builds/cmake/FindBrotliDec.cmake b/builds/cmake/FindBrotliDec.cmake
index a4402d2..ef8551c 100644
--- a/builds/cmake/FindBrotliDec.cmake
+++ b/builds/cmake/FindBrotliDec.cmake
@@ -19,7 +19,8 @@
 #   BROTLIDEC_INCLUDE_DIRS
 #   BROTLIDEC_LIBRARIES
 
-include(FindPkgConfig)
+find_package(PkgConfig)
+
 pkg_check_modules(PC_BROTLIDEC QUIET libbrotlidec)
 
 if (PC_BROTLIDEC_VERSION)
@@ -41,7 +42,7 @@ find_library(BROTLIDEC_LIBRARIES
 
 include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(
-  brotlidec
+  BrotliDec
   REQUIRED_VARS BROTLIDEC_INCLUDE_DIRS BROTLIDEC_LIBRARIES
   FOUND_VAR BROTLIDEC_FOUND
   VERSION_VAR BROTLIDEC_VERSION)



reply via email to

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