summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-16 15:48:43 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-16 15:48:43 (GMT)
commitfbf40e202a86c22868ce5394014606de331356c5 (patch)
tree60b862f32489ccc7b54beb4a9ed5f9467d77be29 /Source/cmLocalVisualStudio7Generator.cxx
parent0fa75654078f81b19ab7bcee9ecc6642a13dcabb (diff)
downloadCMake-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/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 649c6e0..3760893 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -726,7 +726,16 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
temp = m_ExecutableOutputPath;
temp += configName;
temp += "/";
- temp += libName;
+
+ // do we have a different executable name?
+ if (target.GetProperty("OUTPUT_NAME"))
+ {
+ temp += target.GetProperty("OUTPUT_NAME");
+ }
+ else
+ {
+ temp += libName;
+ }
temp += ".exe";
fout << "\t\t\t\tOutputFile=\"" << this->ConvertToXMLOutputPathSingle(temp.c_str()) << "\"\n";
for(std::map<cmStdString, cmStdString>::iterator i = flagMap.begin();