see https://github.com/hrsh7th/nvim-cmp/issues/1017 for a similar issue --- cmake/lua.cmake.orig 2012-11-05 08:39:07 +++ cmake/lua.cmake 2023-03-16 03:40:38 @@ -223,7 +223,8 @@ preload_modules(modules) arg[0] = '${TESTFILEABS}' table.remove(arg, 1) -return assert(loadfile '${TESTFILEABS}')(unpack(arg)) +table.unpack = table.unpack or unpack +return assert(loadfile '${TESTFILEABS}')(table.unpack(arg)) " ) if ( _ARG_WORKING_DIRECTORY ) get_filename_component (