From 18642f4b4e7467534f6c4a66e276a57532c25de6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 26 Oct 2004 16:07:50 -0400 Subject: ENH: Do not generate touch rule for target level dependencies. There are no build-time dependencies by default. --- Source/cmLocalUnixMakefileGenerator2.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index cf5adb7..cbb67cd 100644 --- a/Source/cmLocalUnixMakefileGenerator2.cxx +++ b/Source/cmLocalUnixMakefileGenerator2.cxx @@ -308,7 +308,7 @@ cmLocalUnixMakefileGenerator2 if(!objects.empty()) { ruleFileStream - << "# Include rules for object files.\n"; + << "# Include make rules for object files.\n"; for(std::vector::const_iterator obj = objects.begin(); obj != objects.end(); ++obj) { @@ -339,10 +339,6 @@ cmLocalUnixMakefileGenerator2 depends.push_back((*obj)+".depends"); } depends.push_back(ruleFileName); - std::string touchCmd = "@touch "; - touchCmd += this->ConvertToRelativeOutputPath(depTarget.c_str()); - // TODO: Construct dependency generation rule and append command. - commands.push_back(touchCmd); this->OutputMakeRule(ruleFileStream, depComment.c_str(), depTarget.c_str(), depends, commands); } @@ -474,7 +470,7 @@ cmLocalUnixMakefileGenerator2 depComment += objName; cmOStringStream depCmd; // TODO: Account for source file properties and directory-level - // definitions. + // definitions when scanning for dependencies. depCmd << "$(CMAKE_COMMAND) -E cmake_depends " << lang << " " << this->ConvertToRelativeOutputPath(obj.c_str()) << " " << this->ConvertToRelativeOutputPath(source.GetFullPath().c_str()); -- cgit v0.12