Use `${CMAKE_COMMAND}` instead of `cmake`.