CMake: prevent mismatched package name warnings
Use all caps for the packages. Closes https://github.com/wxWidgets/wxWidgets/pull/1886
This commit is contained in:
committed by
Vadim Zeitlin
parent
f72f2bec3a
commit
1ed8197dfa
30
build/cmake/modules/FindPANGOFT2.cmake
Normal file
30
build/cmake/modules/FindPANGOFT2.cmake
Normal file
@@ -0,0 +1,30 @@
|
||||
# - Try to find PangoFT2
|
||||
# Once done this will define
|
||||
#
|
||||
# PANGOFT2_FOUND - system has PangoFT2
|
||||
# PANGOFT2_INCLUDE_DIRS - The include directory to use for the PangoFT2 headers
|
||||
# PANGOFT2_LIBRARIES - Link these to use PangoFT2
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PC_PANGOFT2 QUIET pangoft2)
|
||||
|
||||
find_path(PANGOFT2_INCLUDE_DIRS
|
||||
NAMES pango-context.h
|
||||
HINTS ${PC_PANGOFT2_INCLUDEDIR}
|
||||
${PC_PANGOFT2_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES pango
|
||||
)
|
||||
|
||||
find_library(PANGOFT2_LIBRARIES
|
||||
NAMES pangoft2-1.0
|
||||
HINTS ${PC_PANGOFT2_LIBDIR}
|
||||
${PC_PANGOFT2_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PANGOFT2 REQUIRED_VARS PANGOFT2_INCLUDE_DIRS PANGOFT2_LIBRARIES)
|
||||
|
||||
mark_as_advanced(
|
||||
PANGOFT2_INCLUDE_DIRS
|
||||
PANGOFT2_LIBRARIES
|
||||
)
|
Reference in New Issue
Block a user