Set CMAKE_GENERATOR when ninja is present

This commit is contained in:
Kenneth Benzie 2021-01-18 19:11:24 +00:00
parent 258baeba77
commit 0b5fc5ad97

4
zshenv
View File

@ -36,6 +36,10 @@ fi
export CCACHE_CONFIGPATH=$HOME/.config/ccache export CCACHE_CONFIGPATH=$HOME/.config/ccache
export CCACHE_DIR=$HOME/.cache/ccache export CCACHE_DIR=$HOME/.cache/ccache
# Add default CMake generator
which ninja &> /dev/null && \
export CMAKE_GENERATOR=Ninja
# Remove duplicates from environment variables # Remove duplicates from environment variables
typeset -U fpath typeset -U fpath
typeset -U PATH; export PATH typeset -U PATH; export PATH