summaryrefslogtreecommitdiff
path: root/lib/strings.nix
diff options
context:
space:
mode:
authorTristan Ross <tristan.ross@midstall.com>2025-03-15 11:49:55 -0700
committerTristan Ross <tristan.ross@midstall.com>2025-03-26 21:12:07 -0700
commitb26e122b14835d2b329bdf462889ecd8479db62b (patch)
tree854f355c0b30c3ff7d44409de7b2072cf9d22a77 /lib/strings.nix
parentllvmPackages_20.libc-full: fix building (#385706) (diff)
downloadnixpkgs-b26e122b14835d2b329bdf462889ecd8479db62b.tar.gz
lib.cmakeOptionType: support list
Diffstat (limited to 'lib/strings.nix')
-rw-r--r--lib/strings.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index 7ee459f5b443..1452995fbce7 100644
--- a/lib/strings.nix
+++ b/lib/strings.nix
@@ -1849,7 +1849,7 @@ rec {
: The type of the feature to be set, as described in
https://cmake.org/cmake/help/latest/command/set.html
the possible values (case insensitive) are:
- BOOL FILEPATH PATH STRING INTERNAL
+ BOOL FILEPATH PATH STRING INTERNAL LIST
`value`
: The desired value
@@ -1872,7 +1872,7 @@ rec {
:::
*/
cmakeOptionType = let
- types = [ "BOOL" "FILEPATH" "PATH" "STRING" "INTERNAL" ];
+ types = [ "BOOL" "FILEPATH" "PATH" "STRING" "INTERNAL" "LIST" ];
in type: feature: value:
assert (elem (toUpper type) types);
assert (isString feature);