Noogλe
search input
Function of the day
Create a -D<condition>={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 examplecmakeBool "ENABLE_STATIC_LIBS" false => "-DENABLESTATIC_LIBS:BOOL=FALSE"