Browse Source

BUG: Fix for cmake_force target in Borland Makefiles.

Brad King 18 years ago
parent
commit
6c82483cdb
1 changed files with 10 additions and 0 deletions
  1. 10 0
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 10 - 0
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -743,6 +743,16 @@ cmLocalUnixMakefileGenerator3
                         no_commands, false);
                         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
   // Special symbolic target that never exists to force dependers to
   // run their rules.
   // run their rules.
   this->WriteMakeRule
   this->WriteMakeRule