diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-07-13 10:36:25 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-14 22:18:10 -0400 |
| commit | dd70336f3ace541586210bd7bd061cc09a8c0e03 (patch) | |
| tree | badb6ba2ced8240adfdae419f175dd2dc1b09267 /src/ThreadPool.zig | |
| parent | a4559271501670b39305fc3575ae8d87fa03d35e (diff) | |
| download | zig-dd70336f3ace541586210bd7bd061cc09a8c0e03.tar.gz zig-dd70336f3ace541586210bd7bd061cc09a8c0e03.zip | |
CMake: Use NAMES_PER_DIR in all lookups
CMake has a surprising default behavior where looking up a library by
multiple names gives the name order higher priority than the directory
search order.
For example, if your system provides "llvm-config-14" and
CMAKE_PREFIX_PATH includes "llvm-config", CMake will always end up
choosing the system-provided llvm-config-14.
This change add NAMES_PER_DIR to request the more sensible behavior:
directory search order has higher priority than name order, so
CMAKE_PREFIX_PATH always wins over system-provided tools/libraries.
Diffstat (limited to 'src/ThreadPool.zig')
0 files changed, 0 insertions, 0 deletions
