mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
build: bump required minimum libvterm version to 0.3.3
Also add detection for libvterm patch version.
This commit is contained in:
parent
ac353e87ae
commit
7a5effb0f9
@ -8,7 +8,16 @@ if(LIBVTERM_INCLUDE_DIR AND EXISTS "${LIBVTERM_INCLUDE_DIR}/vterm.h")
|
||||
file(STRINGS ${LIBVTERM_INCLUDE_DIR}/vterm.h VTERM_VERSION_MINOR REGEX "#define VTERM_VERSION_MINOR")
|
||||
string(REGEX MATCH "[0-9]+" VTERM_VERSION_MINOR ${VTERM_VERSION_MINOR})
|
||||
|
||||
set(VTERM_VERSION ${VTERM_VERSION_MAJOR}.${VTERM_VERSION_MINOR})
|
||||
file(STRINGS ${LIBVTERM_INCLUDE_DIR}/vterm.h VTERM_VERSION_PATCH REGEX "#define VTERM_VERSION_PATCH")
|
||||
|
||||
# The following is needed to give a coherent error for versions 0.3.2 and
|
||||
# smaller.
|
||||
if(VTERM_VERSION_PATCH)
|
||||
string(REGEX MATCH "[0-9]+" VTERM_VERSION_PATCH ${VTERM_VERSION_PATCH})
|
||||
string(PREPEND VTERM_VERSION_PATCH ".")
|
||||
endif()
|
||||
|
||||
set(VTERM_VERSION ${VTERM_VERSION_MAJOR}.${VTERM_VERSION_MINOR}${VTERM_VERSION_PATCH})
|
||||
endif()
|
||||
|
||||
find_package_handle_standard_args(Libvterm
|
||||
|
@ -28,7 +28,7 @@ target_link_libraries(main_lib INTERFACE ${LUV_LIBRARY})
|
||||
find_package(Iconv REQUIRED)
|
||||
find_package(Lpeg REQUIRED)
|
||||
find_package(Libtermkey 0.22 REQUIRED)
|
||||
find_package(Libvterm 0.3 REQUIRED)
|
||||
find_package(Libvterm 0.3.3 REQUIRED)
|
||||
find_package(Msgpack 1.0.0 REQUIRED)
|
||||
find_package(Treesitter 0.20.8 REQUIRED)
|
||||
find_package(Unibilium 2.0 REQUIRED)
|
||||
|
Loading…
Reference in New Issue
Block a user