Xcode: Use allBuild target return value.

This commit is contained in:
Stephen Kelly 2015-07-28 18:32:40 +02:00 committed by Brad King
parent 610572b7d2
commit aa2407d84d
1 changed files with 1 additions and 2 deletions

View File

@ -449,10 +449,9 @@ cmGlobalXCodeGenerator::AddExtraTargets(cmLocalGenerator* root,
// Add ALL_BUILD // Add ALL_BUILD
const char* no_working_directory = 0; const char* no_working_directory = 0;
std::vector<std::string> no_depends; std::vector<std::string> no_depends;
mf->AddUtilityCommand("ALL_BUILD", true, no_depends, cmTarget* allbuild = mf->AddUtilityCommand("ALL_BUILD", true, no_depends,
no_working_directory, no_working_directory,
"echo", "Build all projects"); "echo", "Build all projects");
cmTarget* allbuild = mf->FindTarget("ALL_BUILD");
// Refer to the main build configuration file for easy editing. // Refer to the main build configuration file for easy editing.
std::string listfile = mf->GetCurrentSourceDirectory(); std::string listfile = mf->GetCurrentSourceDirectory();