summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-14 19:38:09 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-12-14 19:38:09 (GMT)
commitb0dffc7e9ca010e42e5baac9623493423664abe8 (patch)
treec5da342ea099bfcb04149d5dad777b6a21aa0fbd /Source/cmTarget.cxx
parentadf62a98f3460899337b00eb9553b86baf691806 (diff)
parent608d6bba89a5588c370dda6d6d46365c24168b55 (diff)
downloadCMake-b0dffc7e9ca010e42e5baac9623493423664abe8.zip
CMake-b0dffc7e9ca010e42e5baac9623493423664abe8.tar.gz
CMake-b0dffc7e9ca010e42e5baac9623493423664abe8.tar.bz2
Merge topic 'parallel-make-install-of-CMake'
608d6bb Fix parallel "make install" of CMake itself
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c82c11e..dd0e7aa 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -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();