Skip to content

Commit 9cdd0f7

Browse files
committed
Escape lists when generating commands
1 parent e69cf4d commit 9cdd0f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmake_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ struct Command {
165165
// https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#unquoted-argument
166166
// NOTE: Normally '/' does not require quoting according to the documentation but this has been the case here
167167
// previously, so for backwards compatibility its still here.
168-
if (str.find_first_of("()#\"\\'> |/") == str.npos)
168+
if (str.find_first_of("()#\"\\'> |/;") == str.npos)
169169
return str;
170170
std::string result;
171171
result += "\"";

0 commit comments

Comments
 (0)