i noticed that Ninja prints build commands to the console. With Unix Makefile this doesn’t happen. I don’t have verbose build enabled. Is there a way to make Ninja builds silent?
Reproducer:
cmake_minimum_required(VERSION 3.20)
project(MyProj)
add_custom_target(tgt ALL COMMAND echo hi)
results in the following build output:
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/test/build
[1/1] cd /tmp/test/build && echo hi
hi
Notice the cd /tmp/test/build && echo hi
output.
In Makefiles it doesn’t happen:
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/test/build
hi
Built target tgt