ngompa / rpms / cmake

Forked from rpms/cmake 4 years ago
Clone
6289c6
diff -up cmake-2.8.10.2/Modules/CMakeNinjaFindMake.cmake.ninja cmake-2.8.10.2/Modules/CMakeNinjaFindMake.cmake
6289c6
--- cmake-2.8.10.2/Modules/CMakeNinjaFindMake.cmake.ninja	2012-11-27 06:26:32.000000000 -0700
6289c6
+++ cmake-2.8.10.2/Modules/CMakeNinjaFindMake.cmake	2013-02-08 09:30:26.437739370 -0700
6289c6
@@ -12,6 +12,6 @@
6289c6
 # (To distribute this file outside of CMake, substitute the full
6289c6
 #  License text for the above reference.)
6289c6
 
6289c6
-find_program(CMAKE_MAKE_PROGRAM ninja
6289c6
+find_program(CMAKE_MAKE_PROGRAM ninja-build
6289c6
   DOC "Program used to build from build.ninja files.")
6289c6
 mark_as_advanced(CMAKE_MAKE_PROGRAM)
6289c6
diff -up cmake-2.8.10.2/Source/cmGlobalNinjaGenerator.cxx.ninja cmake-2.8.10.2/Source/cmGlobalNinjaGenerator.cxx
6289c6
--- cmake-2.8.10.2/Source/cmGlobalNinjaGenerator.cxx.ninja	2012-11-27 06:26:33.000000000 -0700
6289c6
+++ cmake-2.8.10.2/Source/cmGlobalNinjaGenerator.cxx	2013-02-08 09:32:30.397949661 -0700
6289c6
@@ -1034,7 +1034,7 @@ std::string cmGlobalNinjaGenerator::ninj
6289c6
              lgen->GetMakefile()->GetRequiredDefinition("CMAKE_MAKE_PROGRAM"),
6289c6
                                     cmLocalGenerator::SHELL);
6289c6
   }
6289c6
-  return "ninja";
6289c6
+  return "ninja-build";
6289c6
 }
6289c6
 
6289c6
 void cmGlobalNinjaGenerator::WriteTargetClean(std::ostream& os)