Browse Source

ENH: Added output of defines flags as part of INCLUDE_FLAGS.

Brad King 25 years ago
parent
commit
670afe1fc0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmUnixMakefileGenerator.cxx

+ 2 - 1
Source/cmUnixMakefileGenerator.cxx

@@ -146,6 +146,7 @@ void cmUnixMakefileGenerator::OutputMakeFlags(std::ostream& fout)
     std::string include = *i;
     fout << "-I" << i->c_str() << " ";
     }
+  fout << m_Makefile->GetDefineFlags();
   fout << " ${LOCAL_INCLUDE_FLAGS} ";
   fout << "\n";
   fout << "default_target: all\n\n";
@@ -228,7 +229,7 @@ void cmUnixMakefileGenerator::OutputExecutableRules(std::ostream& fout)
       DotO += ".o";
       fout << Classes[i].m_ClassName << ": " << DotO << " ";
       fout << "${CMAKE_DEPEND_LIBS}\n";
-      fout << "\t${CXX}  ${CXX_FLAGS}  " << m_Makefile->GetDefineFlags()
+      fout << "\t${CXX}  ${CXX_FLAGS}  "
            << DotO.c_str() << " "
            << linkLibs.c_str() 
            << " -o $@ ""\n\n";