cmakeFeature
lib.cmakeFeature
Docs pulled from | This Revision | about 1 hour ago
Create a -D
= 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;