Ver Fonte

ENH: use full source name for c code as well as c++

Bill Hoffman há 24 anos atrás
pai
commit
72d683e0ee
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      Source/cmUnixMakefileGenerator.cxx

+ 4 - 1
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
             {