summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-02-28 14:33:25 (GMT)
committerBrad King <brad.king@kitware.com>2007-02-28 14:33:25 (GMT)
commit6c82483cdb2555e9e4f5650548c613fb60b04b85 (patch)
tree8cee56c99096d98cb304b5aba72f718fa4c8c323 /Source
parentcbf6bae9f4cb1d355fd84673ec4132b0d0185b5a (diff)
downloadCMake-6c82483cdb2555e9e4f5650548c613fb60b04b85.zip
CMake-6c82483cdb2555e9e4f5650548c613fb60b04b85.tar.gz
CMake-6c82483cdb2555e9e4f5650548c613fb60b04b85.tar.bz2
BUG: Fix for cmake_force target in Borland Makefiles.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx10
1 files changed, 10 insertions, 0 deletions
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