summaryrefslogtreecommitdiffstats
path: root/Source/cmDSPMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2000-09-21 17:45:08 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2000-09-21 17:45:08 (GMT)
commit1e3ba0f1d72873233193ce69614fd4bd880e8fc5 (patch)
treeda0313b2bf9af52e9b17f639d78a940788c30a2a /Source/cmDSPMakefile.cxx
parent749b7ff7a3556934f4a7d6ead0f9a4d3ade7fad0 (diff)
downloadCMake-1e3ba0f1d72873233193ce69614fd4bd880e8fc5.zip
CMake-1e3ba0f1d72873233193ce69614fd4bd880e8fc5.tar.gz
CMake-1e3ba0f1d72873233193ce69614fd4bd880e8fc5.tar.bz2
ENH: clean up code, and varible names
Diffstat (limited to 'Source/cmDSPMakefile.cxx')
-rw-r--r--Source/cmDSPMakefile.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmDSPMakefile.cxx b/Source/cmDSPMakefile.cxx
index 3fa6c06..9147bcb 100644
--- a/Source/cmDSPMakefile.cxx
+++ b/Source/cmDSPMakefile.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)