summaryrefslogtreecommitdiff
path: root/pcr/libubox-lua-git/001-lua-version.patch
blob: 2cde4b36b1b260edb64a587298c4549667aa7109 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/lua/CMakeLists.txt
+++ b/lua/CMakeLists.txt
@@ -24,7 +24,7 @@
 
 IF(NOT LUAPATH)
 	EXECUTE_PROCESS(
-		COMMAND  lua -e "for k in string.gmatch(package.cpath .. \";\", \"([^;]+)/..so;\") do if k:sub(1,1) == \"/\" then print(k) break end end"
+		COMMAND  lua5.1 -e "for k in string.gmatch(package.cpath .. \";\", \"([^;]+)/..so;\") do if k:sub(1,1) == \"/\" then print(k) break end end"
 		OUTPUT_VARIABLE LUAPATH
 		RESULT_VARIABLE LUA_CHECK_RES
 		OUTPUT_STRIP_TRAILING_WHITESPACE