Honor $<LINK_ONLY> when checking interface properties

Callers of cmTarget::GetLinkImplementationClosure are interested in the
set of targets whose interface properties propagate to the current
target.  This excludes targets guarded by $<LINK_ONLY>.

Teach the CompatibleInterface test to cover suppression of interface
compatibility tests with $<LINK_ONLY>.  Although this is not recommended
in practice, it is a way of covering the above behavior.
This commit is contained in:
Brad King
2014-07-15 11:34:02 -04:00
parent 0400cd5dd1
commit 6e7e881c57
5 changed files with 29 additions and 3 deletions
+4
View File
@@ -0,0 +1,4 @@
int foo()
{
return 0;
}