[CMake] Fixing the check for Ninja
authorChris Bieneman <beanz@apple.com>
Thu, 4 Jun 2015 19:33:23 +0000 (19:33 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 4 Jun 2015 19:33:23 +0000 (19:33 +0000)
commitfbfbe058198925c9eb4d6415207c8b33619bdd17
tree5b8292d85b0aef688fc7ad418cc94985fe8d2e7e
parentd7eb7d7fb19264835f96e280edf1a9567c86092a
[CMake] Fixing the check for Ninja

Enabling Ninja Job Pools needs to be dependent on the CMAKE_MAKE_PROGRAM not the CMAKE_GENERATOR. There are generators (like "Sublime Text 2 - Ninja") that also generate ninja build files. Basing of the CMAKE_MAKE_PROGRAM is the best future-proof way to handle this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239076 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt