diff options
author | Jiri Malak <malak.jiri@gmail.com> | 2020-05-01 09:47:37 (GMT) |
---|---|---|
committer | Jiri Malak <malak.jiri@gmail.com> | 2020-05-01 10:01:14 (GMT) |
commit | 086c20e9a61ab55c66a305e392c4828ef4dae20c (patch) | |
tree | 882d254b34fbb51f6fa2aa4838f730783c81530f /Source/cmGlobalWatcomWMakeGenerator.cxx | |
parent | 79b5cf8576b257ed22b1a35fa651b56f4ba70681 (diff) | |
download | CMake-086c20e9a61ab55c66a305e392c4828ef4dae20c.zip CMake-086c20e9a61ab55c66a305e392c4828ef4dae20c.tar.gz CMake-086c20e9a61ab55c66a305e392c4828ef4dae20c.tar.bz2 |
OpenWatcom: Enable 16-bit targets
Up to now CMake used OpenWatcom 32-bit target tools only.
This fix enable to use OpenWatcom 16-bit target tools too.
If CMAKE_SYSTEM_PROCESSOR(cross-compilation) is 'I86' then
OpenWatcom tools for 16-bit targets are used.
Diffstat (limited to 'Source/cmGlobalWatcomWMakeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalWatcomWMakeGenerator.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalWatcomWMakeGenerator.cxx b/Source/cmGlobalWatcomWMakeGenerator.cxx index 07e0793..d6a7afa 100644 --- a/Source/cmGlobalWatcomWMakeGenerator.cxx +++ b/Source/cmGlobalWatcomWMakeGenerator.cxx @@ -44,6 +44,16 @@ void cmGlobalWatcomWMakeGenerator::EnableLanguage( this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf, optional); } +bool cmGlobalWatcomWMakeGenerator::SetSystemName(std::string const& s, + cmMakefile* mf) +{ + if (mf->GetSafeDefinition("CMAKE_SYSTEM_PROCESSOR") == "I86") { + mf->AddDefinition("CMAKE_GENERATOR_CC", "wcl"); + mf->AddDefinition("CMAKE_GENERATOR_CXX", "wcl"); + } + return this->cmGlobalUnixMakefileGenerator3::SetSystemName(s, mf); +} + void cmGlobalWatcomWMakeGenerator::GetDocumentation( cmDocumentationEntry& entry) { |