cmakeBool
lib.cmakeBool
Docs pulled from | This Revision | about 2 hours ago
Create a -D={TRUE,FALSE} string that can be passed to typical CMake invocations.
Inputs
condition
- The condition to be made true or false
flag
- The controlling flag of the condition
Type
cmakeBool :: string -> bool -> string
Examples
lib.strings.cmakeBool
usage example
cmakeBool "ENABLE_STATIC_LIBS" false
=> "-DENABLESTATIC_LIBS:BOOL=FALSE"