ENH: make install depend on all

This commit is contained in:
Bill Hoffman 2005-04-29 10:06:55 -04:00
parent 1e6da64fc3
commit 2f50e43032
1 changed files with 9 additions and 1 deletions

View File

@ -185,6 +185,14 @@ cmGlobalXCodeGenerator::AddExtraTargets(cmLocalGenerator* root,
mf->AddUtilityCommand("install", false, no_output, no_depends, mf->AddUtilityCommand("install", false, no_output, no_depends,
cmake_command.c_str(), cmake_command.c_str(),
"-P", "cmake_install.cmake"); "-P", "cmake_install.cmake");
const char* noall =
mf->GetDefinition("CMAKE_SKIP_INSTALL_ALL_DEPENDENCY");
if(!noall || cmSystemTools::IsOff(noall))
{
cmTarget* install = mf->FindTarget("install");
install->AddUtility("ALL_BUILD");
}
// Add RUN_TESTS target if testing has been enabled // Add RUN_TESTS target if testing has been enabled
std::string fname; std::string fname;
fname = mf->GetStartOutputDirectory(); fname = mf->GetStartOutputDirectory();