summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeNinjaFindMake.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-03-10 23:54:06 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-10-29 17:03:43 (GMT)
commitf04e0a2b178ec95138a2fbb7d4f5623ca41385e2 (patch)
treedfb82108488513bb82acf5736c3750bca3508110 /Modules/CMakeNinjaFindMake.cmake
parent8451f123503effc219fb1fb816b9659b7e156653 (diff)
downloadCMake-f04e0a2b178ec95138a2fbb7d4f5623ca41385e2.zip
CMake-f04e0a2b178ec95138a2fbb7d4f5623ca41385e2.tar.gz
CMake-f04e0a2b178ec95138a2fbb7d4f5623ca41385e2.tar.bz2
ninja: Find alternate Ninja-compatible binaries
On Red Hat distros, Ninja is /usr/bin/ninja-build because /usr/bin/ninja is an IRC bot.
Diffstat (limited to 'Modules/CMakeNinjaFindMake.cmake')
-rw-r--r--Modules/CMakeNinjaFindMake.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeNinjaFindMake.cmake b/Modules/CMakeNinjaFindMake.cmake
index c3ca767..2f35cf4 100644
--- a/Modules/CMakeNinjaFindMake.cmake
+++ b/Modules/CMakeNinjaFindMake.cmake
@@ -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)