summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-02-11 19:13:58 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-02-11 19:13:58 (GMT)
commit712f4b3d01c3c7f4ee30d54646c278ec21de841c (patch)
tree93bfc5720021e2820a1a5cacc84f2caffce6938b /Source/cmLocalVisualStudio6Generator.cxx
parentb2592925a5be5824878438ad21cca48a0dfe3e80 (diff)
downloadCMake-712f4b3d01c3c7f4ee30d54646c278ec21de841c.zip
CMake-712f4b3d01c3c7f4ee30d54646c278ec21de841c.tar.gz
CMake-712f4b3d01c3c7f4ee30d54646c278ec21de841c.tar.bz2
FIX: fixes bugs 1152 and 1154
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio6Generator.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx
index 0f74c20..95e46b8 100644
--- a/Source/cmLocalVisualStudio6Generator.cxx
+++ b/Source/cmLocalVisualStudio6Generator.cxx
@@ -536,18 +536,6 @@ void cmLocalVisualStudio6Generator::SetBuildType(BuildType b,
std::string root= m_Makefile->GetRequiredDefinition("CMAKE_ROOT");
const char *def= m_Makefile->GetDefinition( "MSPROJECT_TEMPLATE_DIRECTORY");
- std::string exportSymbol;
- if (const char* custom_export_name = target.GetProperty("DEFINE_SYMBOL"))
- {
- exportSymbol = custom_export_name;
- }
- else
- {
- std::string in = libName;
- in += "_EXPORTS";
- exportSymbol = cmSystemTools::MakeCindentifier(in.c_str());
- }
-
if( def)
{
root = def;
@@ -611,8 +599,6 @@ void cmLocalVisualStudio6Generator::SetBuildType(BuildType b,
std::string line;
while(cmSystemTools::GetLineFromStream(fin, line))
{
- cmSystemTools::ReplaceString(line, "OUTPUT_LIBNAME_EXPORTS",
- exportSymbol.c_str());
cmSystemTools::ReplaceString(line, "OUTPUT_LIBNAME",libName);
if (reg.find(line))
{
@@ -996,7 +982,19 @@ void cmLocalVisualStudio6Generator::WriteDSPHeader(std::ostream& fout, const cha
staticLibOptions = libflags;
}
}
-
+ std::string exportSymbol;
+ if (const char* custom_export_name = target.GetProperty("DEFINE_SYMBOL"))
+ {
+ exportSymbol = custom_export_name;
+ }
+ else
+ {
+ std::string in = libName;
+ in += "_EXPORTS";
+ exportSymbol = cmSystemTools::MakeCindentifier(in.c_str());
+ }
+
+
std::string line;
while(cmSystemTools::GetLineFromStream(fin, line))
{
@@ -1005,6 +1003,8 @@ void cmLocalVisualStudio6Generator::WriteDSPHeader(std::ostream& fout, const cha
{
mfcFlag = "0";
}
+ cmSystemTools::ReplaceString(line, "OUTPUT_LIBNAME_EXPORTS",
+ exportSymbol.c_str());
cmSystemTools::ReplaceString(line, "CMAKE_CUSTOM_RULE_CODE",
customRuleCode.c_str());
cmSystemTools::ReplaceString(line, "CMAKE_MFC_FLAG",