diff options
author | Brad King <brad.king@kitware.com> | 2020-04-13 15:00:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-04-13 15:01:03 (GMT) |
commit | eb28858586e0bb1be60ddcdc02fa8b649ebc69f0 (patch) | |
tree | 42c53d1e32d26b7041ab0028de9bce22e43e2d08 /Source | |
parent | da586cf1908d2a7ca933e4fd8309423ef05e455d (diff) | |
parent | 9be48c4d0bd4472d87264534e30ba79397bb691e (diff) | |
download | CMake-eb28858586e0bb1be60ddcdc02fa8b649ebc69f0.zip CMake-eb28858586e0bb1be60ddcdc02fa8b649ebc69f0.tar.gz CMake-eb28858586e0bb1be60ddcdc02fa8b649ebc69f0.tar.bz2 |
Merge topic 'include-dir-special'
9be48c4d0b Tests: Add coverage for special characters in include directories
dc0dc974a9 Xcode: Fix quoting of paths with square brackets
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4591
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index e74d618..bdc03c7 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -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; } |