# CMake: Search for Clang in CMAKE_LIBRARY_PATH, CMAKE_PREFIX_PATH, and CMAKE_FRAMEWORK_PATH · gitcafe/zig

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

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

Visibility: public

Requested revision: abc1ae538fee14af12bb5ffd35024d96da861961

Requested commit: abc1ae538fee14af12bb5ffd35024d96da861961

Commit: abc1ae538fee14af12bb5ffd35024d96da861961

Tree: 33d038cfc5bb096c4b2962ca2e20568c5cbddc60

Author: Cody Tapscott

Committer: Cody Tapscott

## Message

```
CMake: Search for Clang in CMAKE_LIBRARY_PATH, CMAKE_PREFIX_PATH, and CMAKE_FRAMEWORK_PATH

On some systems (esp. systems that use unique hashed file-paths for
library-versions like Nix), we can't expect LLVM and Clang to share
lib/bin directories.

The best we can do is find the matching clang libraries in the
CMAKE_LIBRARY_PATH provided by the environment

```

## Parents

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

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