FIX: fix to make this work with new custom command stuff
This commit is contained in:
parent
b8c36562df
commit
e5637ef7d8
@ -237,13 +237,17 @@ cmGlobalXCodeGenerator::AddExtraTargets(cmLocalGenerator* root,
|
|||||||
m_CurrentXCodeHackMakefile += "/CMakeScripts";
|
m_CurrentXCodeHackMakefile += "/CMakeScripts";
|
||||||
cmSystemTools::MakeDirectory(m_CurrentXCodeHackMakefile.c_str());
|
cmSystemTools::MakeDirectory(m_CurrentXCodeHackMakefile.c_str());
|
||||||
m_CurrentXCodeHackMakefile += "/XCODE_DEPEND_HELPER.make";
|
m_CurrentXCodeHackMakefile += "/XCODE_DEPEND_HELPER.make";
|
||||||
std::string makecommand = "make -C ";
|
cmCustomCommandLine makecommand;
|
||||||
makecommand += this->ConvertToRelativeOutputPath(dir.c_str());
|
makecommand.push_back("make");
|
||||||
makecommand += " -f ";
|
makecommand.push_back("-C");
|
||||||
makecommand += this->ConvertToRelativeOutputPath(
|
makecommand.push_back(this->ConvertToRelativeOutputPath(dir.c_str()));
|
||||||
m_CurrentXCodeHackMakefile.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,
|
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
|
// now make the allbuild depend on all the non-utility targets
|
||||||
// in the project
|
// in the project
|
||||||
for(std::vector<cmLocalGenerator*>::iterator i = gens.begin();
|
for(std::vector<cmLocalGenerator*>::iterator i = gens.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user