mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
Add checks for lpeg/cmsgpack lua packages
These checks will stop the build process with meaningful error messages if any of those packages are not installed.
This commit is contained in:
parent
3ee5683a78
commit
15f3bae801
@ -81,6 +81,24 @@ else()
|
|||||||
message(FATAL_ERROR "A lua interpreter is required for building the Neovim")
|
message(FATAL_ERROR "A lua interpreter is required for building the Neovim")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
execute_process(COMMAND ${LUA_PRG} -e "require('lpeg')"
|
||||||
|
RESULT_VARIABLE LUA_LPEG_MISSING
|
||||||
|
ERROR_QUIET)
|
||||||
|
|
||||||
|
if(${LUA_LPEG_MISSING})
|
||||||
|
message(FATAL_ERROR
|
||||||
|
"The 'lpeg' lua package is required for building Neovim")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
execute_process(COMMAND ${LUA_PRG} -e "require('cmsgpack')"
|
||||||
|
RESULT_VARIABLE LUA_MSGPACK_MISSING
|
||||||
|
ERROR_QUIET)
|
||||||
|
|
||||||
|
if(${LUA_MSGPACK_MISSING})
|
||||||
|
message(FATAL_ERROR
|
||||||
|
"The 'cmsgpack' lua package is required for building Neovim")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(config)
|
add_subdirectory(config)
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_subdirectory(test/includes)
|
add_subdirectory(test/includes)
|
||||||
|
Loading…
Reference in New Issue
Block a user