From: Yegor Yefremov Date: Sun, 6 Apr 2014 19:41:32 +0000 (+0200) Subject: uci: fix Lua finding X-Git-Url: http://git.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=ed938cc8e423d4a33b8f31e6e6d1eb0805ae3d10 uci: fix Lua finding If ${LUAPATH} is not quoted and Lua is not provided, then following error occurs: "NOT" "No such file or directory" "EQUAL" "0" "OR" "EQUAL" "" Signed-off-by: Yegor Yefremov --- diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt index e4295d7..4ba8e37 100644 --- a/lua/CMakeLists.txt +++ b/lua/CMakeLists.txt @@ -36,7 +36,7 @@ IF(NOT LUAPATH) ) IF(BUILD_LUA) - IF(NOT ${LUA_CHECK_RES} EQUAL 0 OR ${LUAPATH} EQUAL "") + IF(NOT ${LUA_CHECK_RES} EQUAL 0 OR "${LUAPATH}" EQUAL "") MESSAGE(SEND_ERROR "Lua was not found on your system") ENDIF() ENDIF()