|
@@ -21,13 +21,15 @@ any of the following criteria:
|
|
|
* The dependency has any ``PRE_BUILD``, ``PRE_LINK``, or ``POST_BUILD`` custom
|
|
|
commands associated with it.
|
|
|
* The dependency contains any source files that were generated by a custom
|
|
|
- command.
|
|
|
+ command. However, if :policy:`CMP0154` is `NEW` for the dependency and it
|
|
|
+ uses :ref:`File Sets`, only source files that are not in a ``PUBLIC``,
|
|
|
+ ``INTERFACE``, or of type ``CXX_MODULES`` are considered.
|
|
|
* The dependency contains any languages which produce side effects that are
|
|
|
relevant to the library. Currently, all languages except C, C++, Objective-C,
|
|
|
Objective-C++, assembly, and CUDA are assumed to produce side effects.
|
|
|
However, side effects from one language are assumed not to be relevant to
|
|
|
another (for example, a Fortran library is assumed to not have any side
|
|
|
- effects that are relevant for a Swift library.)
|
|
|
+ effects that are relevant for a Swift library).
|
|
|
|
|
|
As an example, assume you have a static Fortran library which depends on a
|
|
|
static C library, which in turn depends on a static Fortran library. The
|