xbps-src: new vopt_onoff helper
CMake helper function used to set bool argument values Usage example: configure_args+=" $(vopt_onoff logging WITH_LOGGING)" configure_args+=" -DWITH_LOGGING=OFF"
This commit is contained in:

committed by
Toyam Cox

parent
d64bf2f920
commit
d5c58a3c60
@@ -827,6 +827,11 @@ package accordingly. Additionally, the following functions are available:
|
||||
|
||||
Emits an error and exits if both options are set at the same time.
|
||||
|
||||
- *vopt_onoff()* `vopt_onoff <option> <property>`
|
||||
|
||||
Outputs `-D<property>=ON` if the option is set, or
|
||||
`-D<property>=OFF` otherwise.
|
||||
|
||||
The following example shows how to change a source package that uses GNU
|
||||
configure to enable a new build option to support PNG images:
|
||||
|
||||
|
Reference in New Issue
Block a user