Fix EXCLUDE_FROM_ALL on directory with an interface library

Since commit dc6888573d (Pass EXCLUDE_FROM_ALL from directory to
targets, 2019-01-15, v3.14.0-rc1~83^2) we automatically forward the
`EXCLUDE_FROM_ALL` to targets as they are created.  This regressed
support for interface libraries on which the property is not allowed.

Skip forwarding the `EXCLUDE_FROM_ALL` property for interface libraries.
It is not needed on them because they do not participate in the
generated build system anyway.

Fixes: #18896
This commit is contained in:
Brad King
2019-02-08 08:13:23 -05:00
parent 6f23321d40
commit f87e724e8c
3 changed files with 5 additions and 1 deletions
@@ -0,0 +1 @@
add_library(excluded_iface INTERFACE)