[cmake] Use CMAKE_GENERATOR to determine if Ninja is used
authorMichael Forney <mforney@mforney.org>
Wed, 8 Jul 2020 10:42:39 +0000 (12:42 +0200)
committerHans Wennborg <hans@chromium.org>
Wed, 8 Jul 2020 11:04:13 +0000 (13:04 +0200)
commitb19913188d03d59332908f6280af37325bc49492
tree9864cb23c2e94694ab921a557f17997979df88b4
parent9dc250db9db29b0264fbb1e59bde8efa86d90c9b
[cmake] Use CMAKE_GENERATOR to determine if Ninja is used

The name of the make program does not necessarily match "ninja",
especially if an alternative implementation like samurai is used.

Using CMAKE_GENERATOR is a more robust detection method, and is
already used elsewhere in this file.

Differential revision: https://reviews.llvm.org/D77091
llvm/cmake/modules/HandleLLVMOptions.cmake