From d5c58a3c60e300bd4439ea7cab27b7dec6ecb721 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Sat, 19 Nov 2016 07:22:22 +0100 Subject: [PATCH] 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" --- Manual.md | 5 +++++ common/environment/setup/options.sh | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/Manual.md b/Manual.md index ff6e00e0c9b..626c0faba09 100644 --- a/Manual.md +++ b/Manual.md @@ -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