diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-05-07 13:02:45 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-05-07 13:02:45 (GMT) |
commit | 3bc9830686f25304024d3bc2849d530ac057763d (patch) | |
tree | 13031f07ef9e2128ca7a3e23d535242ca3634e85 /Source/cmBorlandMakefileGenerator.cxx | |
parent | e9e69b7e5e5a331662093f801ada63494ffac0be (diff) | |
download | CMake-3bc9830686f25304024d3bc2849d530ac057763d.zip CMake-3bc9830686f25304024d3bc2849d530ac057763d.tar.gz CMake-3bc9830686f25304024d3bc2849d530ac057763d.tar.bz2 |
ENH: add an edit_cache target that runs ccmake or CMakeSetup
Diffstat (limited to 'Source/cmBorlandMakefileGenerator.cxx')
-rw-r--r-- | Source/cmBorlandMakefileGenerator.cxx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/cmBorlandMakefileGenerator.cxx b/Source/cmBorlandMakefileGenerator.cxx index 0e6fa01..32e76d9 100644 --- a/Source/cmBorlandMakefileGenerator.cxx +++ b/Source/cmBorlandMakefileGenerator.cxx @@ -106,17 +106,23 @@ void cmBorlandMakefileGenerator::OutputMakeVariables(std::ostream& fout) fout << "RM = " << this->ConvertToOutputPath(ccommand.c_str()) << " remove -f\n"; std::string ccompiler = m_Makefile->GetDefinition("CMAKE_C_COMPILER"); fout << "CMAKE_C_COMPILER = " - << this->ConvertToOutputPath(ccompiler.c_str()) + << this->ShortPath(ccompiler.c_str()) << "\n"; std::string cxxcompiler = m_Makefile->GetDefinition("CMAKE_CXX_COMPILER"); fout << "CMAKE_CXX_COMPILER = " - << this->ConvertToOutputPath(cxxcompiler.c_str()) + << this->ShortPath(cxxcompiler.c_str()) << "\n"; - + + if(m_Makefile->GetDefinition("CMAKE_EDIT_COMMAND")) + { + fout << "CMAKE_EDIT_COMMAND = " + << this->ShortPath(m_Makefile->GetDefinition("CMAKE_EDIT_COMMAND")) + << "\n"; + } std::string cmakecommand = m_Makefile->GetDefinition("CMAKE_COMMAND"); fout << "CMAKE_COMMAND = " - << this->ConvertToOutputPath(cmakecommand.c_str()) << "\n"; + << this->ShortPath(cmakecommand.c_str()) << "\n"; fout << replaceVars.c_str(); fout << "CMAKE_CURRENT_SOURCE = " @@ -135,7 +141,7 @@ void cmBorlandMakefileGenerator::OutputMakeVariables(std::ostream& fout) std::vector<std::string>& includes = m_Makefile->GetIncludeDirectories(); std::vector<std::string>::iterator i; fout << "-I" << - this->ConvertToOutputPath(m_Makefile->GetStartDirectory()) << " "; + this->ShortPath(m_Makefile->GetStartDirectory()) << " "; for(i = includes.begin(); i != includes.end(); ++i) { std::string include = *i; |