From 9cdd0f73448dcfe9fb9419486d26c371d2424143 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Wed, 1 Jun 2022 19:26:41 +0200 Subject: [PATCH] Escape lists when generating commands --- src/cmake_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmake_generator.cpp b/src/cmake_generator.cpp index d290122..1814206 100644 --- a/src/cmake_generator.cpp +++ b/src/cmake_generator.cpp @@ -165,7 +165,7 @@ struct Command { // https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#unquoted-argument // NOTE: Normally '/' does not require quoting according to the documentation but this has been the case here // previously, so for backwards compatibility its still here. - if (str.find_first_of("()#\"\\'> |/") == str.npos) + if (str.find_first_of("()#\"\\'> |/;") == str.npos) return str; std::string result; result += "\"";