diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2000-09-21 17:45:08 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2000-09-21 17:45:08 (GMT) |
commit | 1e3ba0f1d72873233193ce69614fd4bd880e8fc5 (patch) | |
tree | da0313b2bf9af52e9b17f639d78a940788c30a2a /Source/cmDSPWriter.cxx | |
parent | 749b7ff7a3556934f4a7d6ead0f9a4d3ade7fad0 (diff) | |
download | CMake-1e3ba0f1d72873233193ce69614fd4bd880e8fc5.zip CMake-1e3ba0f1d72873233193ce69614fd4bd880e8fc5.tar.gz CMake-1e3ba0f1d72873233193ce69614fd4bd880e8fc5.tar.bz2 |
ENH: clean up code, and varible names
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r-- | Source/cmDSPWriter.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 3fa6c06..9147bcb 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -16,17 +16,13 @@ static void Die(const char* message) void cmDSPMakefile::OutputDSPFile() { + // Setup /I and /LIBPATH options std::vector<std::string>& includes = m_BuildFlags.GetIncludeDirectories(); std::vector<std::string>::iterator i; for(i = includes.begin(); i != includes.end(); ++i) { - std::string include = *i; - cmSystemTools::ReplaceString(include, "${CMAKE_BINARY_DIR}", - this->GetOutputHomeDirectory() ); - cmSystemTools::ReplaceString(include, "${CMAKE_SOURCE_ROOT}", - this->GetHomeDirectory() ); m_IncludeOptions += "/I \""; - m_IncludeOptions += include; + m_IncludeOptions += *i; m_IncludeOptions += "\" "; } std::vector<std::string>& libs = m_BuildFlags.GetLinkLibraries(); @@ -48,8 +44,6 @@ void cmDSPMakefile::OutputDSPFile() { m_DebugLibraryOptions += " /LIBPATH:\""; m_DebugLibraryOptions += *i; - cmSystemTools::ReplaceString(m_DebugLibraryOptions, "${CMAKE_BINARY_DIR}", - this->GetOutputHomeDirectory() ); if(i->find("Debug") == std::string::npos) { if(i->find("Release") == std::string::npos) |