cmakeFeature
lib.strings.cmakeFeature
Docs pulled from | This Revision | 35 minutes ago
Create a "-D<feature>:STRING=<value>" string that can be passed to typical
CMake invocations.
This is the most typical usage, so it deserves a special case.
Inputs
feature- The feature to be set
value- The desired value
Type
cmakeFeature :: string -> string -> string
Examples
lib.strings.cmakeFeature usage example
cmakeFeature "MODULES" "badblock"
=> "-DMODULES:STRING=badblock"
Noogle detected
Implementation
The following is the current implementation of this function.
cmakeFeature =
feature: value:
assert (lib.isString feature);
assert (lib.isString value);
cmakeOptionType "string" feature value;