Fix the check for Ninja in the CMake build.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 4 Jun 2015 18:54:16 +0000 (18:54 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 4 Jun 2015 18:54:16 +0000 (18:54 +0000)
commit65cae0d169627d285e0b30d0d21bb23f3a2e3e8d
treed87c59e4abd5e49ffd408ddf68d1458ac3e6fcde
parent33913741813213a10e93c2feabc3480a50176794
Fix the check for Ninja in the CMake build.

The current check never passes, because CMAKE_MAKE_PROGRAM, at least on Linux,
includes the full path to the "ninja" binary; this effectively disables
compile/link jobs pools.

Use CMAKE_GENERATOR STREQUAL "Ninja" as a more reliable check.

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