Lua options are completely ignored by the cmakelists
Issue #729
new
should e.g. add set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_USE_DLOPEN -ldl ") to allow dynamic library loading