summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-04-29 14:06:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-04-29 14:06:55 (GMT)
commit2f50e43032a177ba951f7cc96cb84bf8ba33e06e (patch)
tree9632d64ca57323c6c46aa35ce3ae861cd28d5bcd /Source/cmGlobalXCodeGenerator.cxx
parent1e6da64fc3c6083f4411c3628908857623b9982d (diff)
downloadCMake-2f50e43032a177ba951f7cc96cb84bf8ba33e06e.zip
CMake-2f50e43032a177ba951f7cc96cb84bf8ba33e06e.tar.gz
CMake-2f50e43032a177ba951f7cc96cb84bf8ba33e06e.tar.bz2
ENH: make install depend on all
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index d139ce3..cd93713 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();