neovim-9999-cmake_lua_version.patch 583 B

123456789101112
  1. --- a/src/nvim/CMakeLists.txt
  2. +++ b/src/nvim/CMakeLists.txt
  3. @@ -464,7 +464,7 @@ endif()
  4. # The unit test lib requires LuaJIT; it will be skipped if LuaJIT is missing.
  5. option(PREFER_LUA "Prefer Lua over LuaJIT in the nvim executable." OFF)
  6. if(PREFER_LUA)
  7. - find_package(Lua 5.1 EXACT REQUIRED)
  8. + find_package(Lua ${PREFER_LUA} EXACT REQUIRED)
  9. target_include_directories(main_lib SYSTEM BEFORE INTERFACE ${LUA_INCLUDE_DIR})
  10. target_link_libraries(main_lib INTERFACE ${LUA_LIBRARIES})
  11. # Passive (not REQUIRED): if LUAJIT_FOUND is not set, fixtures for unittests is skipped.