lua: put LUAPATH in quotes to prevent weird error messages when it is unset
authorFelix Fietkau <nbd@openwrt.org>
Sun, 6 May 2012 08:25:46 +0000 (10:25 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 6 May 2012 08:25:46 +0000 (10:25 +0200)
lua/CMakeLists.txt

index 6c22bfce6f3d84a343d435e76917109584d3eaa6..b4fa4d9e83c0f8ceeddb65265fb9802a6cc249b8 100644 (file)
@@ -31,7 +31,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()