07-11-2016, 05:09 AM
Any reason not to use the FindLua module included with cmake? We have to ship with the source anyway because there is no guarantee that lua is installed, so using system lua is just an optimization. And if cmake can't find your lua, you can force it with the LUA_DIR env var when running cmake.