diff options
author | Brad King <brad.king@kitware.com> | 2020-03-27 11:35:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-27 11:35:12 (GMT) |
commit | 610759fa3e75dd8eb9781764d6b6de6bc61c072a (patch) | |
tree | 94c300162b4b661393680afccf5c7540c745733f /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | b83696c04cf7933084c26c9174d7bbe64176fae0 (diff) | |
parent | d6d9da5178e944e66330156a1292e621235eda05 (diff) | |
download | CMake-610759fa3e75dd8eb9781764d6b6de6bc61c072a.zip CMake-610759fa3e75dd8eb9781764d6b6de6bc61c072a.tar.gz CMake-610759fa3e75dd8eb9781764d6b6de6bc61c072a.tar.bz2 |
Merge topic 'make-nested-silent'
d6d9da5178 Makefiles: Fix silencing of nested calls for GNU make 4.3
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4515
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 95c326a..6caf816 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -725,6 +725,10 @@ void cmLocalUnixMakefileGenerator3::WriteSpecialTargetsTop( ; /* clang-format on */ } else { + makefileStream << "# Command-line flag to silence nested $(MAKE).\n" + "$(VERBOSE)MAKESILENT = -s\n" + "\n"; + // Write special target to silence make output. This must be after // the default target in case VERBOSE is set (which changes the // name). The setting of CMAKE_VERBOSE_MAKEFILE to ON will cause a @@ -1919,7 +1923,7 @@ std::string cmLocalUnixMakefileGenerator3::GetRecursiveMakeCall( { // Call make on the given file. std::string cmd = cmStrCat( - "$(MAKE) -f ", + "$(MAKE) $(MAKESILENT) -f ", this->ConvertToOutputFormat(makefile, cmOutputConverter::SHELL), ' '); cmGlobalUnixMakefileGenerator3* gg = |