summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-26 11:37:06 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-26 11:37:06 (GMT)
commit6fdf05db7a36aacfd6f7964bf71f50d03754c009 (patch)
tree7ab3f61118041f854d787686fc055f8c8b180bd3
parent2a085de535f0f7ea92efb43ba63f499fa28209ce (diff)
parentd6d9da5178e944e66330156a1292e621235eda05 (diff)
downloadCMake-6fdf05db7a36aacfd6f7964bf71f50d03754c009.zip
CMake-6fdf05db7a36aacfd6f7964bf71f50d03754c009.tar.gz
CMake-6fdf05db7a36aacfd6f7964bf71f50d03754c009.tar.bz2
Merge branch 'make-nested-silent' into release-3.16
Merge-request: !4515
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 4a70248..919fb74 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -712,6 +712,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
@@ -1910,7 +1914,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 =