Browse Source

OS X: Escape path given to -isysroot flag

Ensure that paths containing spaces or other special characters are
escaped correctly on the command line.
Brad King 11 years ago
parent
commit
77b2e6f1d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmLocalGenerator.cxx

+ 1 - 1
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 &&