summaryrefslogtreecommitdiff
path: root/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.20.0-lua-cmake.patch
blob: d09ac895119b575f9b9b7bc7f689fda9289c3593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/dependencies/lib-lua/CMakeLists.txt
+++ b/dependencies/lib-lua/CMakeLists.txt
@@ -3,9 +3,9 @@
 option(LOCAL_LUA_LIB "Download and build Lua instead of searching the system" ON)
 if (NOT LOCAL_LUA_LIB)
     message(STATUS "Using system Lua")
-    find_package(Lua "5.3" REQUIRED)
+    find_package(Lua "${LUA_VERSION}" REQUIRED EXACT)
     if (NOT LUA_FOUND)
-        message(FATAL_ERROR "Lua 5.3 not found")
+        message(FATAL_ERROR "Lua ${LUA_VERSION} not found")
     endif()
 
     set(LUA_INCLUDE_DIRS "${LUA_INCLUDE_DIR}" PARENT_SCOPE)