summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-02-23 18:50:52 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-02-23 18:50:52 (GMT)
commite5637ef7d816228ed7eb86cc4a0f87d9f8aba1c1 (patch)
tree88f1c885cac2ebb63f3713f33bba023aa2d9d321 /Source/cmGlobalXCodeGenerator.cxx
parentb8c36562df3cad5336f7ea2371fc752047da37e0 (diff)
downloadCMake-e5637ef7d816228ed7eb86cc4a0f87d9f8aba1c1.zip
CMake-e5637ef7d816228ed7eb86cc4a0f87d9f8aba1c1.tar.gz
CMake-e5637ef7d816228ed7eb86cc4a0f87d9f8aba1c1.tar.bz2
FIX: fix to make this work with new custom command stuff
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index cf37483..fb94fea 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -237,13 +237,17 @@ cmGlobalXCodeGenerator::AddExtraTargets(cmLocalGenerator* root,
m_CurrentXCodeHackMakefile += "/CMakeScripts";
cmSystemTools::MakeDirectory(m_CurrentXCodeHackMakefile.c_str());
m_CurrentXCodeHackMakefile += "/XCODE_DEPEND_HELPER.make";
- std::string makecommand = "make -C ";
- makecommand += this->ConvertToRelativeOutputPath(dir.c_str());
- makecommand += " -f ";
- makecommand += this->ConvertToRelativeOutputPath(
- m_CurrentXCodeHackMakefile.c_str());
+ cmCustomCommandLine makecommand;
+ makecommand.push_back("make");
+ makecommand.push_back("-C");
+ makecommand.push_back(this->ConvertToRelativeOutputPath(dir.c_str()));
+ makecommand.push_back("-f");
+ makecommand.push_back(this->ConvertToRelativeOutputPath(
+ m_CurrentXCodeHackMakefile.c_str()));
+ cmCustomCommandLines commandLines;
+ commandLines.push_back(makecommand);
mf->AddUtilityCommand("XCODE_DEPEND_HELPER", false, no_output, no_depends,
- makecommand.c_str());
+ commandLines);
// now make the allbuild depend on all the non-utility targets
// in the project
for(std::vector<cmLocalGenerator*>::iterator i = gens.begin();