zig/cmake
Cody Tapscott dd70336f3a 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.
2022-07-14 22:18:10 -04:00
..
c_flag_overrides.cmake msvc: reduce inlining aggressivity to workaround a codegen bug in cl.exe cf. #3024 2019-10-16 19:04:50 -04:00
cxx_flag_overrides.cmake msvc: reduce inlining aggressivity to workaround a codegen bug in cl.exe cf. #3024 2019-10-16 19:04:50 -04:00
Findclang.cmake CMake: Use NAMES_PER_DIR in all lookups 2022-07-14 22:18:10 -04:00
Findlld.cmake CMake: Use NAMES_PER_DIR in all lookups 2022-07-14 22:18:10 -04:00
Findllvm.cmake CMake: Use NAMES_PER_DIR in all lookups 2022-07-14 22:18:10 -04:00
install.cmake rename libuserland to libstage2 2020-02-16 19:16:08 -05:00