# CMake: detect use of CMAKE_PREFIX_PATH env var · gitcafe/zig

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

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

Visibility: public

Requested revision: 0ae60f7236e4da0c234f59f3671f742695d54905

Requested commit: 0ae60f7236e4da0c234f59f3671f742695d54905

Commit: 0ae60f7236e4da0c234f59f3671f742695d54905

Tree: 8e54ab9b65fc445bbb5f55d564c592afdec2b572

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
CMake: detect use of CMAKE_PREFIX_PATH env var

CMake recognizes the CMAKE_PREFIX_PATH environment variable for some
things, and also the CMAKE_PREFIX_PATH cache variable for other things.
However, it does not relate these two things, i.e. if the environment
variable is set, CMake does not populate the cache variable in a
corresponding manner. Some package systems, such as Homebrew, set the
environment variable but not the cache variable. Furthermore, the
environment variable follows the system path separator, such as ':' on
POSIX and ';' on Windows, but the cache variable follows CMake's array
behavior, i.e. always ';' for a separator.

Closes #13242

```

## Parents

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

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