[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)
commit35b7f81f08d5572e36fc042f69e301d867b6ace4
tree55e24324942b7f4422e9d9f538058bf48009f120
parent13415ededd8365dd0562522a12c7163c6c6a0411
[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.

llvm-svn: 239076
llvm/CMakeLists.txt