diff --git a/README.md b/README.md index 62065cd2..c7cb8e67 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,10 @@ open-source libraries on which **MoltenVK** relies: brew install cmake brew install python3 + For faster dependencies build, you can also install Ninja: + + brew install ninja + 2. Clone the `MoltenVK` repository: git clone https://github.com/KhronosGroup/MoltenVK.git diff --git a/fetchDependencies b/fetchDependencies index 1e9eb7da..2bd954fc 100755 --- a/fetchDependencies +++ b/fetchDependencies @@ -48,8 +48,13 @@ build_repo() { mkdir -p $1/build cd $1/build - cmake .. - make + if type ninja >/dev/null 2>&1 ; then + cmake .. -G Ninja + ninja + else + cmake .. + make + fi cd - }