ninja: Find alternate Ninja-compatible binaries

On Red Hat distros, Ninja is /usr/bin/ninja-build because /usr/bin/ninja
is an IRC bot.
This commit is contained in:
Ben Boeckel 2014-03-10 19:54:06 -04:00
parent 8451f12350
commit f04e0a2b17
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
find_program(CMAKE_MAKE_PROGRAM ninja
find_program(CMAKE_MAKE_PROGRAM
NAMES ninja-build ninja
DOC "Program used to build from build.ninja files.")
mark_as_advanced(CMAKE_MAKE_PROGRAM)