diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-06-16 15:48:43 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-06-16 15:48:43 (GMT) |
commit | fbf40e202a86c22868ce5394014606de331356c5 (patch) | |
tree | 60b862f32489ccc7b54beb4a9ed5f9467d77be29 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 0fa75654078f81b19ab7bcee9ecc6642a13dcabb (diff) | |
download | CMake-fbf40e202a86c22868ce5394014606de331356c5.zip CMake-fbf40e202a86c22868ce5394014606de331356c5.tar.gz CMake-fbf40e202a86c22868ce5394014606de331356c5.tar.bz2 |
ENH: add first cut at support for exe with same name as lib
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. |