From 2f50e43032a177ba951f7cc96cb84bf8ba33e06e Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 29 Apr 2005 10:06:55 -0400 Subject: [PATCH] ENH: make install depend on all --- Source/cmGlobalXCodeGenerator.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index d139ce3f76..cd93713d19 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -184,7 +184,15 @@ cmGlobalXCodeGenerator::AddExtraTargets(cmLocalGenerator* root, std::string cmake_command = mf->GetRequiredDefinition("CMAKE_COMMAND"); mf->AddUtilityCommand("install", false, no_output, no_depends, 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 std::string fname; fname = mf->GetStartOutputDirectory();