summaryrefslogtreecommitdiff
blob: c53b63588c4303c2479e27002077f12e4cc6bcc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -148,9 +148,9 @@ if (ENABLE_CPPUNIT)
 endif (ENABLE_CPPUNIT)
 
 # Plugins / scripting
-find_package (Lua 5.3 EXACT)
+find_package (Lua ${LUA_VERSION} EXACT)
 if (NOT Lua_FOUND)
-	find_package (Lua 5.3) # Lua 5.4 is only supported with cmake >=3.18
+	find_package (Lua ${LUA_VERSION}) # Lua 5.4 is only supported with cmake >=3.18
 endif()
 
 if (Lua_FOUND)