소스 검색

BUG: Fix for cmake_force target in Borland Makefiles.

Brad King 19 년 전
부모
커밋
6c82483cdb
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 10 - 0
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -743,6 +743,16 @@ cmLocalUnixMakefileGenerator3
                         no_commands, false);
     }
 
+  // Work-around for makes that drop rules that have no dependencies
+  // or commands.
+  cmGlobalUnixMakefileGenerator3* gg =
+    static_cast<cmGlobalUnixMakefileGenerator3*>(this->GlobalGenerator);
+  std::string hack = gg->GetEmptyRuleHackDepends();
+  if(!hack.empty())
+    {
+    no_depends.push_back(hack);
+    }
+
   // Special symbolic target that never exists to force dependers to
   // run their rules.
   this->WriteMakeRule