CMake should automatically find ninja-build by default if it is in the PATH.
With MR 4091 CMake 3.17’s Ninja generator will select either ninja or ninja-build whichever appears first in PATH. CMake 3.16 and below use ninja-build if it is anywhere in PATH and otherwise tries plain ninja.