diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-05-18 20:10:49 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-05-18 20:10:49 (GMT) |
commit | 451c63df0d1803fa3a0a3fe9d387c6181f6dc053 (patch) | |
tree | 956ffc059aad02c84e638c7029b8ca66282c3462 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 78b5cca6e31c2eb3fc684652ecb03b0558a41c8e (diff) | |
download | CMake-451c63df0d1803fa3a0a3fe9d387c6181f6dc053.zip CMake-451c63df0d1803fa3a0a3fe9d387c6181f6dc053.tar.gz CMake-451c63df0d1803fa3a0a3fe9d387c6181f6dc053.tar.bz2 |
ENH: fix for makes that do not handle targets wihtout a rule to build them
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 4944d99..38296cc 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -612,20 +612,23 @@ cmLocalUnixMakefileGenerator3 // corresponding targets. std::string objectRequires = relativeObj; objectRequires += ".requires"; + std::string temp = relativeObj; + temp += ".depend"; std::vector<std::string> no_commands; - + std::vector<std::string> p_depends; + p_depends.push_back(temp); // always provide an empty requires target this->WriteMakeRule(ruleFileStream, 0, - objectRequires.c_str(), no_commands, no_commands); + objectRequires.c_str(), p_depends, no_commands); // write a build rule to recursively build what this obj provides std::string objectProvides = relativeObj; objectProvides += ".provides"; - std::string temp = relativeObj; + temp = relativeObj; temp += ".provides.build"; std::vector<std::string> r_commands; r_commands.push_back(this->GetRecursiveMakeCall("build.make",temp.c_str())); - std::vector<std::string> p_depends; + p_depends.clear(); p_depends.push_back(objectRequires); this->WriteMakeRule(ruleFileStream, 0, objectProvides.c_str(), p_depends, r_commands); |