Merge topic 'parallel-make-install-of-CMake'

608d6bb Fix parallel "make install" of CMake itself
This commit is contained in:
Brad King 2010-12-14 14:38:09 -05:00 committed by CMake Topic Stage
commit b0dffc7e9c
1 changed files with 9 additions and 0 deletions

View File

@ -1450,6 +1450,15 @@ cmTargetTraceDependencies
//----------------------------------------------------------------------------
void cmTarget::TraceDependencies(const char* vsProjectFile)
{
// CMake-generated targets have no dependencies to trace. Normally tracing
// would find nothing anyway, but when building CMake itself the "install"
// target command ends up referencing the "cmake" target but we do not
// really want the dependency because "install" depend on "all" anyway.
if(this->GetType() == cmTarget::GLOBAL_TARGET)
{
return;
}
// Use a helper object to trace the dependencies.
cmTargetTraceDependencies tracer(this, this->Internal.Get(), vsProjectFile);
tracer.Trace();