summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-12 15:49:10 (GMT)
committerBrad King <brad.king@kitware.com>2014-02-12 15:49:10 (GMT)
commit77b2e6f1d838205550f46501b682895d8b38484e (patch)
tree582613ebba9b2cf0f8f5acd8e211e0c2747dafcf /Source/cmLocalGenerator.cxx
parent5104f55d3f9cf2f9b2537364d1b9a5c86d2f790b (diff)
downloadCMake-77b2e6f1d838205550f46501b682895d8b38484e.zip
CMake-77b2e6f1d838205550f46501b682895d8b38484e.tar.gz
CMake-77b2e6f1d838205550f46501b682895d8b38484e.tar.bz2
OS X: Escape path given to -isysroot flag
Ensure that paths containing spaces or other special characters are escaped correctly on the command line.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index b8b7035..aca195c 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1972,7 +1972,7 @@ void cmLocalGenerator::AddArchitectureFlags(std::string& flags,
flags += " ";
flags += sysrootFlag;
flags += " ";
- flags += sysroot;
+ flags += this->Convert(sysroot, NONE, SHELL);
}
if (deploymentTargetFlag && *deploymentTargetFlag &&