From 6c82483cdb2555e9e4f5650548c613fb60b04b85 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Wed, 28 Feb 2007 09:33:25 -0500
Subject: BUG: Fix for cmake_force target in Borland Makefiles.

---
 Source/cmLocalUnixMakefileGenerator3.cxx | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index c17822f..e5036b3 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/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
-- 
cgit v0.12