summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-10-13 14:03:54 (GMT)
committerBrad King <brad.king@kitware.com>2006-10-13 14:03:54 (GMT)
commit023041362d714212d3dcdd39dddd1dd6b83c2ff7 (patch)
tree1e62871b11d94f4b9a42f2865ada238804c955e7 /Source
parent2f713072c7a5676c89c0a31efa90a67dcb923c90 (diff)
downloadCMake-023041362d714212d3dcdd39dddd1dd6b83c2ff7.zip
CMake-023041362d714212d3dcdd39dddd1dd6b83c2ff7.tar.gz
CMake-023041362d714212d3dcdd39dddd1dd6b83c2ff7.tar.bz2
BUG: Do not try to compute the location of a non-library target for linking.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index d4a3f68..d0fc68f 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1629,7 +1629,9 @@ void cmLocalGenerator
{
// Compute the proper name to use to link this library.
cmTarget* tgt = this->GlobalGenerator->FindTarget(0, lib.c_str());
- if(tgt)
+ if(tgt && (tgt->GetType() == cmTarget::STATIC_LIBRARY ||
+ tgt->GetType() == cmTarget::SHARED_LIBRARY ||
+ tgt->GetType() == cmTarget::MODULE_LIBRARY))
{
// This is a CMake target. Ask the target for its real name.
// Pass the full path to the target file but purposely leave