diff options
author | Daniel Hahler <git@thequod.de> | 2019-09-06 23:39:41 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-06 14:39:41 -0700 |
commit | 16b64c339e98f23967396dfd85fd28105af6c587 (patch) | |
tree | db1bfdfe874321fb6e6b602c45e7031560d4001e /cmake/FindLIBVTERM.cmake | |
parent | 754ea8d27e92fafeed4890ba5bc523dcbebecc76 (diff) | |
download | rneovim-16b64c339e98f23967396dfd85fd28105af6c587.tar.gz rneovim-16b64c339e98f23967396dfd85fd28105af6c587.tar.bz2 rneovim-16b64c339e98f23967396dfd85fd28105af6c587.zip |
build: rename CMake find modules for LibFindMacros #10928
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 in 1896c72a5).
Diffstat (limited to 'cmake/FindLIBVTERM.cmake')
-rw-r--r-- | cmake/FindLIBVTERM.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/FindLIBVTERM.cmake b/cmake/FindLIBVTERM.cmake new file mode 100644 index 0000000000..469494ddfd --- /dev/null +++ b/cmake/FindLIBVTERM.cmake @@ -0,0 +1,10 @@ +# - 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) |