[cmake-developers] [Patch] Added property to disable the "Built target" progress messages in Makefile targets
Michael Enßlin
michael at ensslin.cc
Fri Jul 10 15:18:56 EDT 2015
===== Motivation:
In my project, openage, the build system currently produces fairly much
useless output, even if not a single file of the project has changed:
mic at mic ~/git/openage $ make
[ 0%] Built target compilepy
[ 1%] Built target cythonize
[ 1%] Built target codegen
[ 83%] Built target libopenage
[ 84%] Built target openage_testing_cpp_testing
[ 86%] Built target run
[ 87%] Built target openage_cabextract_cabchecksum
[ 88%] Built target openage_cabextract_lzxd
[ 89%] Built target openage_cppinterface_exctranslate
[ 90%] Built target openage_cppinterface_exctranslate_tests
[ 91%] Built target openage_cppinterface_setup_checker
[ 93%] Built target openage_cppinterface_pyobject
[ 94%] Built target openage_game_main_cpp
[ 95%] Built target openage_log_log_cpp
[ 96%] Built target openage_util_fslike_cpp
[ 98%] Built target openage_testing_misc_cpp
[ 99%] Built target inplacemodules
[ 99%] Built target pxdgen
[100%] Built target distfiles
mic at mic ~/git/openage $
That list of targets is expected to grow fairly large in the
near-distant future; at some point, it might even get large enough to
hide actual important compilation messages.
===== Patch:
The patch adds a global property, "TARGET_MESSAGES", which behaves
analogous to "RULE_MESSAGES" in that it can be explicitly set to OFF to
suppress some build output.
When set to OFF, the above invocation of `make` will produce no output.
Otherwise, CMake will behave as usual.
The patch includes some documentation.
~ Michael Ensslin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-the-TARGET_MESSAGES-property.patch
Type: text/x-patch
Size: 3876 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150710/aec791b9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150710/aec791b9/attachment.sig>
More information about the cmake-developers
mailing list