diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-12-05 18:44:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-12-05 18:44:11 (GMT) |
commit | 96189f79d582f90758ba1b4f691031b1d7fa02f3 (patch) | |
tree | 36bc488b7a77d01a9b9be3b1e4b0ab8963378fdc /Source/cmGlobalBorlandMakefileGenerator.cxx | |
parent | 8d20322160e6e8c7bf9c6d69de9319f57373de5d (diff) | |
download | CMake-96189f79d582f90758ba1b4f691031b1d7fa02f3.zip CMake-96189f79d582f90758ba1b4f691031b1d7fa02f3.tar.gz CMake-96189f79d582f90758ba1b4f691031b1d7fa02f3.tar.bz2 |
ENH: unify EnableLanguage across all generators
Diffstat (limited to 'Source/cmGlobalBorlandMakefileGenerator.cxx')
-rw-r--r-- | Source/cmGlobalBorlandMakefileGenerator.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmGlobalBorlandMakefileGenerator.cxx b/Source/cmGlobalBorlandMakefileGenerator.cxx index 7e85f3a..baf8807 100644 --- a/Source/cmGlobalBorlandMakefileGenerator.cxx +++ b/Source/cmGlobalBorlandMakefileGenerator.cxx @@ -18,6 +18,10 @@ #include "cmLocalUnixMakefileGenerator.h" #include "cmMakefile.h" #include "cmake.h" +cmGlobalBorlandMakefileGenerator::cmGlobalBorlandMakefileGenerator() +{ + m_FindMakeProgramFile = "CMakeBorlandFindMake.cmake"; +} void cmGlobalBorlandMakefileGenerator::EnableLanguage(const char* l, cmMakefile *mf) @@ -40,13 +44,6 @@ void cmGlobalBorlandMakefileGenerator::EnableLanguage(const char* l, mf->AddDefinition("BORLAND", "1"); mf->AddDefinition("CMAKE_GENERATOR_CC", "bcc32"); mf->AddDefinition("CMAKE_GENERATOR_CXX", "bcc32"); - if(!mf->GetDefinition("CMAKE_MAKE_PROGRAM") - || cmSystemTools::IsOff(mf->GetDefinition("CMAKE_MAKE_PROGRAM"))) - { - std::string setMakeProgram = mf->GetDefinition("CMAKE_ROOT"); - setMakeProgram += "/Modules/CMakeBorlandFindMake.cmake"; - mf->ReadListFile(0, setMakeProgram.c_str()); - } this->cmGlobalUnixMakefileGenerator::EnableLanguage(l, mf); } |