From 72d683e0eed03329302374ec3d0f4ca3eacd93ee Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 7 Nov 2001 14:55:49 -0500 Subject: [PATCH] ENH: use full source name for c code as well as c++ --- Source/cmUnixMakefileGenerator.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 663a6a33e..7954a5870 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -1457,7 +1457,10 @@ void cmUnixMakefileGenerator::OutputSourceObjectBuildRules(std::ostream& fout) { compileCommand += "$(CMAKE_SHLIB_CFLAGS) "; } - compileCommand += "$(INCLUDE_FLAGS) -c $< -o $@"; + compileCommand += "$(INCLUDE_FLAGS) -c "; + compileCommand += source->GetFullPath(); + compileCommand +=+ " -o "; + compileCommand += objectFile; } else {