diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-02-18 20:45:19 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-02-18 20:45:19 (GMT) |
commit | c116bf5f8465171015bf84bddbe0fa06e2328c69 (patch) | |
tree | 5dfcea1bd8979fe9a11fa5c948ae203d0a45fda3 /Source/cmGlobalXCodeGenerator.cxx | |
parent | 94a3e4be5332e8174db39876537073329e788202 (diff) | |
download | CMake-c116bf5f8465171015bf84bddbe0fa06e2328c69.zip CMake-c116bf5f8465171015bf84bddbe0fa06e2328c69.tar.gz CMake-c116bf5f8465171015bf84bddbe0fa06e2328c69.tar.bz2 |
ENH: fix for spaces in the path
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 965c3f8..b2da216 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -230,16 +230,16 @@ cmGlobalXCodeGenerator::AddExtraTargets(cmLocalGenerator* root, mf->AddUtilityCommand("install", cmake_command.c_str(), "-P cmake_install.cmake", false, srcs); // Add XCODE depend helper - std::string dir = this->ConvertToRelativeOutputPath( - mf->GetCurrentOutputDirectory()); + std::string dir = mf->GetCurrentOutputDirectory(); m_CurrentXCodeHackMakefile = dir; m_CurrentXCodeHackMakefile += "/CMakeScripts"; cmSystemTools::MakeDirectory(m_CurrentXCodeHackMakefile.c_str()); m_CurrentXCodeHackMakefile += "/XCODE_DEPEND_HELPER.make"; std::string makecommand = "make -C "; - makecommand += dir; + makecommand += this->ConvertToRelativeOutputPath(dir.c_str()); makecommand += " -f "; - makecommand += m_CurrentXCodeHackMakefile; + makecommand += this->ConvertToRelativeOutputPath( + m_CurrentXCodeHackMakefile.c_str()); mf->AddUtilityCommand("XCODE_DEPEND_HELPER", makecommand.c_str(), "", false,srcs); @@ -714,7 +714,8 @@ cmGlobalXCodeGenerator::AddCommandsToBuildPhase(cmXCodeObject* buildphase, std::string makecmd = "make -C "; makecmd += cdir; makecmd += " -f "; - makecmd += makefile; + makecmd += this->ConvertToRelativeOutputPath(makefile.c_str()); + cmSystemTools::ReplaceString(makecmd, "\\ ", "\\\\ "); buildphase->AddAttribute("shellScript", this->CreateString(makecmd.c_str())); } |