From c1953bbb6faa1fb419d89d979002e75d4da7ccf2 Mon Sep 17 00:00:00 2001 From: MoAlyousef Date: Sat, 12 Sep 2020 16:54:38 +0300 Subject: [PATCH] add quotes to generator --- src/build.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.cpp b/src/build.cpp index 77afcc2..89025e6 100644 --- a/src/build.cpp +++ b/src/build.cpp @@ -28,7 +28,7 @@ int run(int argc, char **argv) { ss << "cmake -S. -B" << cmake.bin_dir << " "; if (!cmake.generator.empty()) { - ss << "-G " << cmake.generator << " "; + ss << "-G \"" << cmake.generator << "\" "; } if (!cmake.gen_args.empty()) { for (const auto &arg : cmake.gen_args) {