mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'include-dir-special'
9be48c4d0bTests: Add coverage for special characters in include directoriesdc0dc974a9Xcode: Fix quoting of paths with square brackets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4591
This commit is contained in:
@@ -3550,7 +3550,7 @@ std::string cmGlobalXCodeGenerator::RelativeToBinary(const std::string& p)
|
||||
|
||||
std::string cmGlobalXCodeGenerator::XCodeEscapePath(const std::string& p)
|
||||
{
|
||||
if (p.find(' ') != std::string::npos) {
|
||||
if (p.find_first_of(" []") != std::string::npos) {
|
||||
std::string t = cmStrCat('"', p, '"');
|
||||
return t;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user