Skip to content

Exclude a source file from the build #8

@ncoghlan

Description

@ncoghlan

I have a header file that I want to include to get access to some constants and enums exported by a library, but ct-cake is interpreting that as a request to build and statically link another copy of that library, which then fails at link time.

The SOURCE flag in https://github.com/Zomojo/compiletools/blob/master/README.ct-magicflags.rst offers a way to add extra files to the build, but is there a way to exclude particular headers from the process of finding source files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions