diff --git a/Tools/capp/Generate.j b/Tools/capp/Generate.j index 26576f98b..d112de349 100644 --- a/Tools/capp/Generate.j +++ b/Tools/capp/Generate.j @@ -45,8 +45,8 @@ function gen(/*va_args*/) } } - if (!justFrameworks && destination.length === 0) - destination = "Untitled"; + if (destination.length === 0) + destination = justFrameworks ? "." : "Untitled"; var sourceTemplate = null; if (File.isAbsolute(template))