diff options
author | Brad King <brad.king@kitware.com> | 2024-05-14 16:52:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-05-14 16:52:08 (GMT) |
commit | 6010e007c73a00cfee17832efc475567fec8fe5b (patch) | |
tree | 874e13eaa78f9d9239cc92f6fd7fc1e679a01ba9 | |
parent | 648a7fb9b9b7f17fd729f61e166ab831add59357 (diff) | |
download | CMake-6010e007c73a00cfee17832efc475567fec8fe5b.zip CMake-6010e007c73a00cfee17832efc475567fec8fe5b.tar.gz CMake-6010e007c73a00cfee17832efc475567fec8fe5b.tar.bz2 |
cmState: Add method to check for the Borland Makefiles generator
-rw-r--r-- | Source/cmGlobalBorlandMakefileGenerator.cxx | 1 | ||||
-rw-r--r-- | Source/cmState.cxx | 10 | ||||
-rw-r--r-- | Source/cmState.h | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmGlobalBorlandMakefileGenerator.cxx b/Source/cmGlobalBorlandMakefileGenerator.cxx index 2fd7f8a..6eabe9c 100644 --- a/Source/cmGlobalBorlandMakefileGenerator.cxx +++ b/Source/cmGlobalBorlandMakefileGenerator.cxx @@ -24,6 +24,7 @@ cmGlobalBorlandMakefileGenerator::cmGlobalBorlandMakefileGenerator(cmake* cm) this->ToolSupportsColor = true; this->UseLinkScript = false; cm->GetState()->SetWindowsShell(true); + cm->GetState()->SetBorlandMake(true); this->IncludeDirective = "!include"; this->DefineWindowsNULL = true; this->PassMakeflags = true; diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 72eeb9d..e05eb10 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -716,6 +716,16 @@ bool cmState::UseGhsMultiIDE() const return this->GhsMultiIDE; } +void cmState::SetBorlandMake(bool borlandMake) +{ + this->BorlandMake = borlandMake; +} + +bool cmState::UseBorlandMake() const +{ + return this->BorlandMake; +} + void cmState::SetWatcomWMake(bool watcomWMake) { this->WatcomWMake = watcomWMake; diff --git a/Source/cmState.h b/Source/cmState.h index 5aceb6a..4dc982f 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -213,6 +213,8 @@ public: bool UseWindowsVSIDE() const; void SetGhsMultiIDE(bool ghsMultiIDE); bool UseGhsMultiIDE() const; + void SetBorlandMake(bool borlandMake); + bool UseBorlandMake() const; void SetWatcomWMake(bool watcomWMake); bool UseWatcomWMake() const; void SetMinGWMake(bool minGWMake); @@ -294,6 +296,7 @@ private: bool WindowsShell = false; bool WindowsVSIDE = false; bool GhsMultiIDE = false; + bool BorlandMake = false; bool WatcomWMake = false; bool MinGWMake = false; bool NMake = false; |