Преглед на файлове

ENH: add define flags in the right place

Bill Hoffman преди 25 години
родител
ревизия
85d16dbd35
променени са 2 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 3 3
      Source/cmDSPMakefile.cxx
  2. 3 3
      Source/cmDSPWriter.cxx

+ 3 - 3
Source/cmDSPMakefile.cxx

@@ -75,10 +75,8 @@ void cmDSPMakefile::OutputDSPFile()
     }
     }
   m_DebugLibraryOptions += "/STACK:10000000 ";
   m_DebugLibraryOptions += "/STACK:10000000 ";
   // add any extra define flags 
   // add any extra define flags 
-  m_DebugLibraryOptions += m_Makefile->GetDefineFlags();
   m_ReleaseLibraryOptions = m_DebugLibraryOptions;
   m_ReleaseLibraryOptions = m_DebugLibraryOptions;
   cmSystemTools::ReplaceString(m_ReleaseLibraryOptions, "Debug", "Release");
   cmSystemTools::ReplaceString(m_ReleaseLibraryOptions, "Debug", "Release");
-  
   // If the output directory is not the m_cmHomeDirectory
   // If the output directory is not the m_cmHomeDirectory
   // then create it.
   // then create it.
   if(strcmp(m_Makefile->GetOutputDirectory(),
   if(strcmp(m_Makefile->GetOutputDirectory(),
@@ -265,6 +263,7 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout)
     Die(message.c_str());
     Die(message.c_str());
     }
     }
   char buffer[2048];
   char buffer[2048];
+
   while(fin)
   while(fin)
     {
     {
       fin.getline(buffer, 2048);
       fin.getline(buffer, 2048);
@@ -278,7 +277,8 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout)
       cmSystemTools::ReplaceString(line, "OUTPUT_LIBNAME", 
       cmSystemTools::ReplaceString(line, "OUTPUT_LIBNAME", 
                                     m_Makefile->GetLibraryName());
                                     m_Makefile->GetLibraryName());
       cmSystemTools::ReplaceString(line, 
       cmSystemTools::ReplaceString(line, 
-                                    "EXTRA_DEFINES", "");
+                                    "EXTRA_DEFINES", 
+				   m_Makefile->GetDefineFlags());
       fout << line.c_str() << std::endl;
       fout << line.c_str() << std::endl;
     }
     }
 }
 }

+ 3 - 3
Source/cmDSPWriter.cxx

@@ -75,10 +75,8 @@ void cmDSPMakefile::OutputDSPFile()
     }
     }
   m_DebugLibraryOptions += "/STACK:10000000 ";
   m_DebugLibraryOptions += "/STACK:10000000 ";
   // add any extra define flags 
   // add any extra define flags 
-  m_DebugLibraryOptions += m_Makefile->GetDefineFlags();
   m_ReleaseLibraryOptions = m_DebugLibraryOptions;
   m_ReleaseLibraryOptions = m_DebugLibraryOptions;
   cmSystemTools::ReplaceString(m_ReleaseLibraryOptions, "Debug", "Release");
   cmSystemTools::ReplaceString(m_ReleaseLibraryOptions, "Debug", "Release");
-  
   // If the output directory is not the m_cmHomeDirectory
   // If the output directory is not the m_cmHomeDirectory
   // then create it.
   // then create it.
   if(strcmp(m_Makefile->GetOutputDirectory(),
   if(strcmp(m_Makefile->GetOutputDirectory(),
@@ -265,6 +263,7 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout)
     Die(message.c_str());
     Die(message.c_str());
     }
     }
   char buffer[2048];
   char buffer[2048];
+
   while(fin)
   while(fin)
     {
     {
       fin.getline(buffer, 2048);
       fin.getline(buffer, 2048);
@@ -278,7 +277,8 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout)
       cmSystemTools::ReplaceString(line, "OUTPUT_LIBNAME", 
       cmSystemTools::ReplaceString(line, "OUTPUT_LIBNAME", 
                                     m_Makefile->GetLibraryName());
                                     m_Makefile->GetLibraryName());
       cmSystemTools::ReplaceString(line, 
       cmSystemTools::ReplaceString(line, 
-                                    "EXTRA_DEFINES", "");
+                                    "EXTRA_DEFINES", 
+				   m_Makefile->GetDefineFlags());
       fout << line.c_str() << std::endl;
       fout << line.c_str() << std::endl;
     }
     }
 }
 }