summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeTargetDepends.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-06 21:48:53 (GMT)
committerBrad King <brad.king@kitware.com>2008-08-06 21:48:53 (GMT)
commitd76b20bf3ae9b045fc3c17f8d5e33fccd997b175 (patch)
tree745768d27e4635a946234eec29cc72cce255d678 /Source/cmComputeTargetDepends.h
parent37a009b7f704e26e2a76485d74c3ee5612f208d7 (diff)
downloadCMake-d76b20bf3ae9b045fc3c17f8d5e33fccd997b175.zip
CMake-d76b20bf3ae9b045fc3c17f8d5e33fccd997b175.tar.gz
CMake-d76b20bf3ae9b045fc3c17f8d5e33fccd997b175.tar.bz2
BUG: Avoid bogus dependency on executable targets
When an executable target within the project is named in target_link_libraries for another target, but the executable does not have the ENABLE_EXPORTS property set, then the executable cannot really be linked. This is probably a case where the user intends to link to a third-party library that happens to have the same name as an executable target in the project (or else will get an error at build time). We need to avoid making the other target depend on the executable target incorrectly, since the executable may actually want to link to that target and this is not a circular depenency.
Diffstat (limited to 'Source/cmComputeTargetDepends.h')
-rw-r--r--Source/cmComputeTargetDepends.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmComputeTargetDepends.h b/Source/cmComputeTargetDepends.h
index 707256e..e3e15e1 100644
--- a/Source/cmComputeTargetDepends.h
+++ b/Source/cmComputeTargetDepends.h
@@ -48,7 +48,8 @@ private:
void CollectTargets();
void CollectDepends();
void CollectTargetDepends(int depender_index);
- void AddTargetDepend(int depender_index, const char* dependee_name);
+ void AddTargetDepend(int depender_index, const char* dependee_name,
+ bool linking);
void ComputeFinalDepends(cmComputeComponentGraph const& ccg);
cmGlobalGenerator* GlobalGenerator;