# CMake: try to avoid compilation for \`install\` target · gitcafe/zig

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

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

Visibility: public

Requested revision: 77d67aa662d425c997df9323bb958b9ae6192117

Requested commit: 77d67aa662d425c997df9323bb958b9ae6192117

Commit: 77d67aa662d425c997df9323bb958b9ae6192117

Tree: 010dc1fd7f7c91cb1a9dd056115250d5aca0638c

Author: johnLate

Committer: Andrew Kelley

## Message

```
CMake: try to avoid compilation for `install` target

This is andrewrk's patch from ziglang#6724 (rebased)

CMake: Fix dependency problem

I don't know whether the error was expected cmake behavior or a bug.
This change seems to fix the issue. See ziglang#6724 for details.

```

## Parents

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

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