diff options
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index cee2a0d..51c5a31 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1314,7 +1314,16 @@ cmLocalUnixMakefileGenerator3 targetFullPath += ".app/Contents/MacOS/"; } #endif - targetFullPath += target.GetName(); + + // do we have a different executable name? + if (target.GetProperty("OUTPUT_NAME")) + { + targetFullPath += target.GetProperty("OUTPUT_NAME"); + } + else + { + targetFullPath += target.GetName(); + } targetFullPath += cmSystemTools::GetExecutableExtension(); // Convert to the output path to use in constructing commands. |