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:
Eman Resu
2026-06-24 17:16:56 -04:00
parent 184d899ccf
commit f9c9f70a40
+1 -1
View File
@@ -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