diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-05-18 18:35:44 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-05-18 18:35:44 (GMT) |
commit | 6580114309dd2a0e547ddf9b8cb4148fe6cc857f (patch) | |
tree | c67edc3be7809c5921e4dbd296ea8ad18b0d0209 /Source | |
parent | 29a03db7ce5150c30610d4a9b0e7c6d38f923f35 (diff) | |
download | CMake-6580114309dd2a0e547ddf9b8cb4148fe6cc857f.zip CMake-6580114309dd2a0e547ddf9b8cb4148fe6cc857f.tar.gz CMake-6580114309dd2a0e547ddf9b8cb4148fe6cc857f.tar.bz2 |
BUG: fix issue with too many fast targets being listed
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index ae9df5e..ecb718c 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -651,14 +651,19 @@ cmGlobalUnixMakefileGenerator3 } else { - // Add a fast rule to build the target - depends.clear(); - commands.clear(); - std::string localName = t->second.GetName(); - depends.push_back(localName); - localName += "/fast"; - lg->WriteMakeRule(ruleFileStream, "fast build rule for target.", - localName.c_str(), depends, commands, true); + if(t->second.GetName() && + strlen(t->second.GetName()) && + emitted.insert(t->second.GetName()).second) + { + // Add a fast rule to build the target + depends.clear(); + commands.clear(); + std::string localName = t->second.GetName(); + depends.push_back(localName); + localName += "/fast"; + lg->WriteMakeRule(ruleFileStream, "fast build rule for target.", + localName.c_str(), depends, commands, true); + } } } } |