# restore the option to build with cmake · gitcafe/zig

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

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

Visibility: public

Requested revision: 88dc688bbf10fb95c51783eca0526054d33ef5a1

Requested commit: 88dc688bbf10fb95c51783eca0526054d33ef5a1

Commit: 88dc688bbf10fb95c51783eca0526054d33ef5a1

Tree: 5d1cf8d680faa08a722037b9ece2fdd0110c06d3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
restore the option to build with cmake

restore cmake to be capable of figuring out the zig version

restore config.h and config.zig. config.h is used to detect whether we
should propagate cmake configuration information to build.zig; however
it can be overridden with -Dstatic-llvm.

fix not passing -DZIG_LINK_MODE with zig build.

when using the cmake build path, build.zig no longer tries to call
llvm-config. Instead it relies 100% on the LLVM_LIBRARIES cmake variable.

build.zig logic reworked and simplified.

```

## Parents

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

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