Signed-off-by: Sergey Ponomarev <[email protected]>
---
lua/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt
index 34c9ab1..4a114f6 100644
--- a/lua/CMakeLists.txt
+++ b/lua/CMakeLists.txt
@@ -17,7 +17,7 @@ ENDIF(APPLE)
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 lua -e "for k in string.gmatch(package.cpath .. \";\",
\"([^;]+)/..so;\") do if k:sub(1,9) == \"/usr/lib/\" then print(k) break end
end"
OUTPUT_VARIABLE LUAPATH
RESULT_VARIABLE LUA_CHECK_RES
OUTPUT_STRIP_TRAILING_WHITESPACE
--
2.19.1
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel