mirror of
https://github.com/reactos/CMake.git
synced 2024-11-23 11:39:48 +00:00
feb5cb8d9d
We search for tools `ninja-build`, `ninja`, and `samu` as the build tool for the Ninja generator. Re-order the search to prefer whichever tool appears first in the `PATH`. This makes it easier for users to control which tool gets used when more than one is available. Fixes: #20028
10 lines
315 B
CMake
10 lines
315 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
|
find_program(CMAKE_MAKE_PROGRAM
|
|
NAMES ninja-build ninja samu
|
|
NAMES_PER_DIR
|
|
DOC "Program used to build from build.ninja files.")
|
|
mark_as_advanced(CMAKE_MAKE_PROGRAM)
|