[GRADLE-2925] Headers for source set added to NativeBinary are not available for compilation Created: 22/Oct/13  Updated: 22/Nov/13  Resolved: 22/Nov/13

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.10-rc-1

Type: Bug
Reporter: Daz DeBoer Assignee: Unassigned
Resolution: Fixed Votes: 0


Headers exported from a sourceset that are applied to a binary (as opposed to component) are not available to a consuming component:

    libraries {
        hello {
            source sources.main.cpp
            binaries.all {
                source sources.linux.cpp
    executables {
        main {
            lib libraries.hello

Then the headers from 'sources.main.cpp' are included when compiling 'executables.main', but headers for 'sources.linux.cpp' are not.

Generated at Wed Jun 30 12:35:10 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.