diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 918687f9d4..b3ed0f8640 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,12 +68,24 @@ endif(NOT CMAKE_USE_PTHREADS_INIT) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) +find_program(LUA_PRG luajit) + +# Need a lua interpreter for running the msgapck metadata/dispatch generator +if(NOT EXISTS ${LUA_PRG}) + find_program(LUA_PRG lua) +endif() + +if(EXISTS ${LUA_PRG}) + message(STATUS "Using the lua interpreter ${LUA_PRG}") +else() + message(FATAL_ERROR "A lua interpreter is required for building the Neovim") +endif() + add_subdirectory(config) add_subdirectory(src) add_subdirectory(test/includes) find_program(BUSTED_PRG busted) -find_program(LUAJIT_PRG luajit) find_program(MAKE_PRG NAMES gmake make) if(MAKE_PRG) |