summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKai Wang <wangkai86@huawei.com>2021-01-11 06:55:41 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-11 17:14:04 (GMT)
commit4d509437cb23f372845fba98fc8d57887c53fa70 (patch)
treead4fed6ba194bff984b2011ee5d9dd2b954cbd52 /Source
parentaaebbd200bfc4c4802f95daf472fccc69cc04dd8 (diff)
downloadCMake-4d509437cb23f372845fba98fc8d57887c53fa70.zip
CMake-4d509437cb23f372845fba98fc8d57887c53fa70.tar.gz
CMake-4d509437cb23f372845fba98fc8d57887c53fa70.tar.bz2
cmDepends: disable long line dependencies for nmake
This is a follow-up to commit b696f78073 (cmDepends: merge dependers of depend makefile, 2020-12-18). NMake of visual studio has many versions that not support long line dependencies of make rule. Signed-off-by: Wangkai <wangkai86@huawei.com> Fixes: #21681
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalNMakeMakefileGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalNMakeMakefileGenerator.cxx b/Source/cmGlobalNMakeMakefileGenerator.cxx
index c4bec23..36f583f 100644
--- a/Source/cmGlobalNMakeMakefileGenerator.cxx
+++ b/Source/cmGlobalNMakeMakefileGenerator.cxx
@@ -21,6 +21,8 @@ cmGlobalNMakeMakefileGenerator::cmGlobalNMakeMakefileGenerator(cmake* cm)
this->PassMakeflags = true;
this->UnixCD = false;
this->MakeSilentFlag = "/nologo";
+ // nmake breaks on '!' in long-line dependencies
+ this->ToolSupportsLongLineDependencies = false;
}
void cmGlobalNMakeMakefileGenerator::EnableLanguage(