diff options
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 3f5be33..81a2c62 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1674,6 +1674,11 @@ cmLocalUnixMakefileGenerator3 { objectName = relFromSource; } + else + { + // This is not relative to source or binary, so make it no path at all + objectName = cmSystemTools::GetFilenameName(objectName.c_str()); + } } // Replace the original source file extension with the object file |