build: remove pkgconfig-related code (#22422)

Cmake should already be able to find everything on its own.
This commit is contained in:
dundargoc
2023-02-26 22:32:08 +01:00
committed by GitHub
parent 774e59f3f9
commit 1e37703a74
7 changed files with 15 additions and 122 deletions

View File

@@ -1,23 +1,8 @@
# - Try to find libtermkey
# Once done this will define
# LIBTERMKEY_FOUND - System has libtermkey
# LIBTERMKEY_INCLUDE_DIRS - The libtermkey include directories
# LIBTERMKEY_LIBRARIES - The libraries needed to use libtermkey
find_package(PkgConfig)
if (PKG_CONFIG_FOUND)
pkg_check_modules(PC_LIBTERMKEY QUIET termkey)
endif()
set(LIBTERMKEY_DEFINITIONS ${PC_LIBTERMKEY_CFLAGS_OTHER})
find_path(LIBTERMKEY_INCLUDE_DIR termkey.h
PATHS ${PC_LIBTERMKEY_INCLUDEDIR} ${PC_LIBTERMKEY_INCLUDE_DIRS})
find_path(LIBTERMKEY_INCLUDE_DIR termkey.h)
list(APPEND LIBTERMKEY_NAMES termkey)
find_library(LIBTERMKEY_LIBRARY NAMES ${LIBTERMKEY_NAMES}
HINTS ${PC_LIBTERMKEY_LIBDIR} ${PC_LIBTERMKEY_LIBRARY_DIRS})
find_library(LIBTERMKEY_LIBRARY NAMES ${LIBTERMKEY_NAMES})
set(LIBTERMKEY_LIBRARIES ${LIBTERMKEY_LIBRARY})
set(LIBTERMKEY_INCLUDE_DIRS ${LIBTERMKEY_INCLUDE_DIR})