summaryrefslogtreecommitdiff
path: root/Source/cmGlobalNMakeMakefileGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-28 12:51:05 -0400
committerBrad King <brad.king@kitware.com>2021-05-05 10:55:55 -0400
commit8a4f536be664c0ef6d79c2bf7fd547355ae59c81 (patch)
treee0d93e27c6dcd6ff6ac114d6ee8d6837e976592b /Source/cmGlobalNMakeMakefileGenerator.h
parent49c6d0f26199c252b493ed5f816dbcb2e9701112 (diff)
downloadcmake-8a4f536be664c0ef6d79c2bf7fd547355ae59c81.tar.gz
NMake: Detect nmake version
Run `nmake -?` and extract the version from its output. Use a timeout because Watcom tools come with a `nmake` tool that always waits for user input on `-?`.
Diffstat (limited to 'Source/cmGlobalNMakeMakefileGenerator.h')
-rw-r--r--Source/cmGlobalNMakeMakefileGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalNMakeMakefileGenerator.h b/Source/cmGlobalNMakeMakefileGenerator.h
index abe64ff963..c23eef8141 100644
--- a/Source/cmGlobalNMakeMakefileGenerator.h
+++ b/Source/cmGlobalNMakeMakefileGenerator.h
@@ -55,6 +55,9 @@ protected:
void PrintBuildCommandAdvice(std::ostream& os, int jobs) const override;
private:
+ std::string NMakeVersion;
+ bool FindMakeProgram(cmMakefile* mf) override;
+
void PrintCompilerAdvice(std::ostream& os, std::string const& lang,
const char* envVar) const override;
};