diff options
Diffstat (limited to 'Source/cmDSPMakefile.cxx')
-rw-r--r-- | Source/cmDSPMakefile.cxx | 10 |
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) |