lib.strings.cmakeBool: inline two function calls
I can live with a function like boolToString being used, but if we're immediately modifying its output, we should homeroll it.
This commit is contained in:
+1
-1
@@ -2200,7 +2200,7 @@ rec {
|
||||
cmakeBool =
|
||||
condition: flag:
|
||||
assert (lib.isBool flag);
|
||||
cmakeOptionType "bool" condition (lib.toUpper (lib.boolToString flag));
|
||||
cmakeOptionType "bool" condition (if flag then "TRUE" else "FALSE");
|
||||
|
||||
/**
|
||||
Create a `"-D<feature>:STRING=<value>"` string that can be passed to typical
|
||||
|
||||
Reference in New Issue
Block a user