summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-23 11:56:32 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-23 11:57:33 (GMT)
commit63382b527758374a15ae5f38d016c15d3c0b0014 (patch)
treec735ef22cba9ecc7c31bebe6db1760b30f621436 /Source
parent7ed844df035c974fbc148b652a9c999b0690db6a (diff)
parent7f78bc42cbbc6399d4baca21b49a3ac43edf638d (diff)
downloadCMake-63382b527758374a15ae5f38d016c15d3c0b0014.zip
CMake-63382b527758374a15ae5f38d016c15d3c0b0014.tar.gz
CMake-63382b527758374a15ae5f38d016c15d3c0b0014.tar.bz2
Merge topic 'makefile-fix-verbose'
7f78bc42cb Makefile: Fix regression in .SILENT rule Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4928
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 4545a8e..de1461a 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -713,9 +713,10 @@ void cmLocalUnixMakefileGenerator3::WriteSpecialTargetsTop(
// "VERBOSE=1" to be added as a make variable which will change the
// name of this special target. This gives a make-time choice to
// the user.
- this->WriteMakeRule(makefileStream,
- "Suppress display of executed commands.",
- "$(VERBOSE).SILENT", no_depends, no_commands, false);
+ // Write directly to the stream since WriteMakeRule escapes '$'.
+ makefileStream << "#Suppress display of executed commands.\n"
+ "$(VERBOSE).SILENT:\n"
+ "\n";
}
// Work-around for makes that drop rules that have no dependencies