mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
16b64c339e
We are using "LIBFOO" prefixes for `LIBFOO_INCLUDE_DIRS` etc, and therefore need to use this for the PREFIX with LibFindMacros also, so that `"${${PREFIX}_FIND_VERSION}"` gets handled there properly. The alternative would be to either manually handle/set the upper/mixed case variants of those variable additionally, which is not as easy. Keeping the existing names is useful for packagers. Before this the version requirements with `find_package(Unibilium 2.0 REQUIRED)` was not handled (a49cf5126
), and it prepares for using a required version with libvterm (initially/wrongly ported in1896c72a5
).
11 lines
347 B
CMake
11 lines
347 B
CMake
# - Try to find libvterm
|
|
# Once done this will define
|
|
# LIBVTERM_FOUND - System has libvterm
|
|
# LIBVTERM_INCLUDE_DIRS - The libvterm include directories
|
|
# LIBVTERM_LIBRARIES - The libraries needed to use libvterm
|
|
|
|
include(LibFindMacros)
|
|
|
|
libfind_pkg_detect(LIBVTERM vterm FIND_PATH vterm.h FIND_LIBRARY vterm)
|
|
libfind_process(LIBVTERM REQUIRED)
|