$OpenBSD: patch-CMakeLists_txt,v 1.3 2021/03/07 17:33:37 landry Exp $

Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -185,7 +185,7 @@ if (WITH_LUA)
         include_directories(SYSTEM ${LUAJIT_INCLUDE_DIR})
         set(HAVE_LUAJIT 1)
     else()
-        find_package(Lua REQUIRED)
+        find_package(Lua ${MODLUA_VERSION} REQUIRED)
         include_directories(SYSTEM ${LUA_INCLUDE_DIR})
     endif()
     set(HAVE_LUA 1)
