aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-05-25 08:11:53 -0600
committerGitHub <noreply@github.com>2022-05-25 08:11:53 -0600
commit802a23926d237139822dda0ab712de3e1a98e5f9 (patch)
tree5abf1e7d60af44f5290d2d6a4fea2a21d7f1d6ba
parentaf2899aee0b27e27d658c5f9053b83f439210cea (diff)
downloadrneovim-802a23926d237139822dda0ab712de3e1a98e5f9.tar.gz
rneovim-802a23926d237139822dda0ab712de3e1a98e5f9.tar.bz2
rneovim-802a23926d237139822dda0ab712de3e1a98e5f9.zip
build: require exact Lua version when using PREFER_LUA (#16633)
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 409face71c..d75c1a4a6a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -453,7 +453,7 @@ endif()
option(PREFER_LUA "Prefer Lua over LuaJIT in the nvim executable." OFF)
if(PREFER_LUA)
- find_package(Lua 5.1 REQUIRED)
+ find_package(Lua 5.1 EXACT REQUIRED)
set(LUA_PREFERRED_INCLUDE_DIRS ${LUA_INCLUDE_DIR})
set(LUA_PREFERRED_LIBRARIES ${LUA_LIBRARIES})
# Passive (not REQUIRED): if LUAJIT_FOUND is not set, nvim-test is skipped.