瀏覽代碼

BUG: COMPILE_DEFINITIONS directory property needs to be inherited from parent when a directory is created.

Brad King 18 年之前
父節點
當前提交
7f589c9f23
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/cmMakefile.cxx

+ 4 - 0
Source/cmMakefile.cxx

@@ -1134,6 +1134,10 @@ void cmMakefile::InitializeFromParent()
   // define flags
   this->DefineFlags = parent->DefineFlags;
 
+  // compile definitions property
+  this->SetProperty("COMPILE_DEFINITIONS",
+                    parent->GetProperty("COMPILE_DEFINITIONS"));
+
   // link libraries
   this->LinkLibraries = parent->LinkLibraries;