Jelajahi Sumber

BUG: fix for bug number 3964

Ken Martin 19 tahun lalu
induk
melakukan
f46704fefe
1 mengubah file dengan 9 tambahan dan 0 penghapusan
  1. 9 0
      Source/cmMakefileTargetGenerator.cxx

+ 9 - 0
Source/cmMakefileTargetGenerator.cxx

@@ -279,6 +279,15 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags()
 
     *this->FlagFileStream << lang << "_FLAGS = " << flags << "\n\n";
     }
+
+  // Add target-specific flags.
+  if(this->Target->GetProperty("COMPILE_FLAGS"))
+    {
+    std::string flags;    
+    this->LocalGenerator->AppendFlags
+      (flags, this->Target->GetProperty("COMPILE_FLAGS"));
+    *this->FlagFileStream << "# TARGET_FLAGS = " << flags << "\n\n";
+    }
 }
 
 //----------------------------------------------------------------------------