8000 parsing cmake variables values of bool · Issue #25 · aradi/fypp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
parsing cmake variables values of bool #25
Open
@zerothi

Description

@zerothi

Using fypp to parse cmake options are really great, but I generally have a problem parsing WITH_* arguments.

I would rather not do:

#:if defined("WITH_OPT")
.. option ON
#:endif

but rather something like:

#:if bool("WITH_OPT")
... option ON
#:endif

I can of course define a function that parses this, but I think this could be very generally useful? The truth/false values could optionally be set by some global FYPP_BOOL_TRUE/FALSE variables?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0