• Stephen Kelly's avatar
    Export: Disallow export of targets with INTERFACE_SOURCES · e1348056
    Stephen Kelly authored
    This can be allowed in the next release, but it needs to have some
    features present and tested such as
    * Ensuring that relative paths do not appear in the generated property.
    * Ensuring that paths to the source or build directories do not appear.
    * Generating a check in the file for CMake 3.1 or later so that the
        resulting property will be consumed.
    * Ensuring that any referenced targets are part of an export set and
        generating a check for them.
    All of these checks are already done for INTERFACE_INCLUDE_DIRECTORIES,
    but it is too late to add them for INTERFACE_SOURCES for CMake 3.1.
    As the checks introduce some new error conditions, it is better to
    disallow exporting fully for this case and introduce proper error
    conditions later instead of policies.