xmake-options

Installation
SKILL.md

Xmake Options

Options are user-facing switches that can be set via xmake f --name=value and queried from targets and conditions.

Declaring an option

option("enable_foo")
    set_default(false)
    set_showmenu(true)
    set_description("Enable the foo subsystem")
option_end()

set_showmenu(true) makes the option visible in xmake f --menu and xmake f --help.

Using an option from a target

Installs
5
GitHub Stars
16
First Seen
Apr 29, 2026
xmake-options — xmake-io/xmake-skills