diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-13 20:49:51 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-13 20:49:51 (GMT) |
commit | 3d5a724deb18d0c54ef0037c54f64f8f9f99d63d (patch) | |
tree | d5787fdcfae2388524b482e7169e5f053678a0f5 /Source/cmLocalVisualStudio6Generator.cxx | |
parent | 1b115dc2e3ad57c7555716ecab3a096e26acfac7 (diff) | |
download | CMake-3d5a724deb18d0c54ef0037c54f64f8f9f99d63d.zip CMake-3d5a724deb18d0c54ef0037c54f64f8f9f99d63d.tar.gz CMake-3d5a724deb18d0c54ef0037c54f64f8f9f99d63d.tar.bz2 |
BUG: revert part of patch that set executable debug prefix as it breaks too much stuff
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 56 |
1 files changed, 5 insertions, 51 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index ea13277..bc60b27 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -780,7 +780,6 @@ void cmLocalVisualStudio6Generator libPath = m_Makefile->GetDefinition("LIBRARY_OUTPUT_PATH"); } std::string exePath = ""; - std::string exePathDebug = ""; if (m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH")) { exePath = m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH"); @@ -975,37 +974,10 @@ void cmLocalVisualStudio6Generator // if the executable has an output name then add the appropriate flag if (target.GetProperty("OUTPUT_NAME")) { - std::string outputname = target.GetProperty("OUTPUT_NAME"); libMultiLineOptions += "# ADD LINK32 /out:"; - libMultiLineOptions += outputname; + libMultiLineOptions += target.GetProperty("OUTPUT_NAME"); libMultiLineOptions += " \n"; } - else - { - libMultiLineOptions += "# ADD LINK32 /out:\""; - - if(exePath != "") - { - libMultiLineOptions += exePath + "/" + libName + ".exe"; - } - else - { - libMultiLineOptions += std::string(libName) + ".exe"; - } - libMultiLineOptions += "\"\n"; - libMultiLineOptionsForDebug += "# ADD LINK32 /out:\""; - if(exePath != "") - { - libMultiLineOptionsForDebug += exePath + "$(INTDIR)/" + libName + "D.exe"; - } - else - { - libMultiLineOptionsForDebug += std::string("$(INTDIR)/") - + std::string(libName) + "D.exe"; - } - - libMultiLineOptionsForDebug += "\"\n"; - } } if(target.GetType() == cmTarget::SHARED_LIBRARY) { @@ -1114,7 +1086,6 @@ void cmLocalVisualStudio6Generator libDebugOptions.c_str()); cmSystemTools::ReplaceString(line, "CM_OPTIMIZED_LIBRARIES", libOptimizedOptions.c_str()); - cmSystemTools::ReplaceString(line, "CM_MULTILINE_LIBRARIES_FOR_DEBUG", libMultiLineOptionsForDebug.c_str()); cmSystemTools::ReplaceString(line, "CM_MULTILINE_LIBRARIES", @@ -1130,32 +1101,15 @@ void cmLocalVisualStudio6Generator // because LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH // are already quoted in the template file, // we need to remove the quotes here, we still need - // to convert to output path for unix to win32 conversion + // to convert to output path for unix to win32 conversion cmSystemTools::ReplaceString(line, "LIBRARY_OUTPUT_PATH", removeQuotes( this->ConvertToOptionallyRelativeOutputPath(libPath.c_str())).c_str()); + cmSystemTools::ReplaceString(line, "EXECUTABLE_OUTPUT_PATH", + removeQuotes( + this->ConvertToOptionallyRelativeOutputPath(exePath.c_str())).c_str()); - if (!m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH_OVERRIDE") || exePath == "") - { - cmSystemTools::ReplaceString(line, "EXECUTABLE_OUTPUT_PATH", - removeQuotes( - this->ConvertToOptionallyRelativeOutputPath(exePath.c_str())).c_str()); - } else - { - cmSystemTools::ReplaceString(line, "EXECUTABLE_OUTPUT_PATHRelease", - removeQuotes( - this->ConvertToOptionallyRelativeOutputPath(exePath.c_str())).c_str()); - cmSystemTools::ReplaceString(line, "EXECUTABLE_OUTPUT_PATHDebug", - removeQuotes( - this->ConvertToOptionallyRelativeOutputPath(exePath.c_str())).c_str()); - cmSystemTools::ReplaceString(line, "EXECUTABLE_OUTPUT_PATHMinSizeRel", - removeQuotes( - this->ConvertToOptionallyRelativeOutputPath(exePath.c_str())).c_str()); - cmSystemTools::ReplaceString(line, "EXECUTABLE_OUTPUT_PATHRelWithDebInfo", - removeQuotes( - this->ConvertToOptionallyRelativeOutputPath(exePath.c_str())).c_str()); - } cmSystemTools::ReplaceString(line, "EXTRA_DEFINES", m_Makefile->GetDefineFlags()); |