lib.strings.cmakeFeature: beta reduce

This commit is contained in:
Eman Resu
2026-06-24 17:16:57 -04:00
parent 4755ddd126
commit ff92c9d15a
+3 -2
View File
@@ -2162,8 +2162,9 @@ rec {
"LIST"
];
in
type: feature: value:
type:
assert (elem (toUpper type) types);
feature: value:
assert (isString feature);
assert (isString value);
"-D${feature}:${toUpper type}=${value}";
@@ -2232,7 +2233,7 @@ rec {
:::
*/
cmakeFeature = feature: value: cmakeOptionType "string" feature value;
cmakeFeature = cmakeOptionType "string";
/**
Create a `"-D<feature>=<value>"` string that can be passed to typical Meson