Skip to content

Preprocessor directives #50268

@johne53

Description

@johne53

Is your feature request related to a problem? Please describe.

Sorry, I've been looking to find a forum for vcpkg questions and this was the closest thing I could find!

It's not a problem - just a question that I'm curious about… i.e. whereabouts do preprocessor directives get defined in a vcpkg project? Consider the following, which we’ll assume is in a header file somewhere:-

#if defined (SOMETHING)
#define WHATEVER 1
#endif

Obviously the relevant header file is responsible for defining WHATEVER - but SOMETHING would typically be defined by the build project. So whereabouts would SOMETHING get defined for a vcpkg project?

Proposed solution

I'm not sure if this site will send me replies but I'll keep checking from time to time.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions