diff --git a/build/tasks/grunt-cmake.js b/build/tasks/grunt-cmake.js index 8d20c7bb..579ddf66 100644 --- a/build/tasks/grunt-cmake.js +++ b/build/tasks/grunt-cmake.js @@ -16,7 +16,7 @@ module.exports = function (grunt) { } try { - await spawnCmake(['-B', 'build', '.', ...opt.cmakeConfigure], src); + await spawnCmake(['-B', 'build', '.', ...(opt.cmakeConfigure || [])], src); } catch (e) { grunt.warn(`Configure error: ${e}`); }