Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for per-worktree cached Zig build options. On load of Zig `CMakeLists.txt` shell env is probed for `ZIG_LOCAL_CMAKE_CACHE_DIR` and then `$ZIG_LOCAL_CMAKE_CACHE_DIR/CMakeLists.txt` is loaded. This makes it a little more convenient to have a different set of Zig build options for different worktrees. example setup: export ZIG_LOCAL_CMAKE_CACHE_DIR=local example contents of `$WORKTREE/local/CMakeLists.txt`: CMAKE_BUILD_TYPE:STRING=Debug CMAKE_INSTALL_PREFIX:PATH=/opt/zig CMAKE_PREFIX_PATH:PATH=/opt/llvm-9.0.1 ZIG_SKIP_INSTALL_LIB_FILES:BOOL=ON ZIG_ENABLE_MEM_PROFILE:BOOL=OFF
- Loading branch information