summaryrefslogtreecommitdiff
path: root/app-misc/fastfetch/files/fastfetch-2.64.1-cmake_lua_version.patch
blob: 36bc5354f0322b9a55d9736a0176247727477332 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1784,7 +1784,7 @@
 )
 if(ENABLE_LUA)
     # Lua is a special case since its CMake config does not follow the usual pattern
-    find_package(Lua QUIET)
+    find_package(Lua ${LUA_VERSION} QUIET EXACT REQUIRED)
     if(Lua_FOUND AND NOT DEFINED Lua_VERSION) # For CMake 4.2- compatible
         set(Lua_VERSION ${LUA_VERSION_STRING})
         set(Lua_VERSION_MAJOR ${LUA_VERSION_MAJOR})