# cmake: remove case mismatch detection on build mode · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/fb6b94f80fed42b4c690b43a875bf0a58977493e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: fb6b94f80fed42b4c690b43a875bf0a58977493e

Requested commit: fb6b94f80fed42b4c690b43a875bf0a58977493e

Commit: fb6b94f80fed42b4c690b43a875bf0a58977493e

Tree: 74fcd751e35852e6b5d1defe990327c55c40c2b2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
cmake: remove case mismatch detection on build mode

See discussion here for context:
https://github.com/ziglang/zig/commit/c6df5deb3450e0d8a2ba449c34a0bd195fbce8ec#comments

Michael - I appreciate what you did here, making the configure script
work better for people in practice. When it was checking the build type
against a whitelist, I think it was worth it. However, now that we are
supporting systems which use non-standard cmake build modes, I don't
think this case-mismatch detection thing is worth it. It's starting to
get to the point where it's a lot of complication for very little
benefit. Besides, cmake is not case sensitive. If we support
non-standard build modes, then we would need to support a hypothetical
build mode of `release` (lower case).

So let's just remove this and rely on people to use the build system
correctly (like they will have to do when building any cmake project
from source).

```

## Parents

- [cf67d30cdcdd46264e59184ff6a1bf9062a77878](https://git.cafe/gitcafe/zig/commit/cf67d30cdcdd46264e59184ff6a1bf9062a77878?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/fb6b94f80fed42b4c690b43a875bf0a58977493e?format=markdown)
