summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-04 22:50:48 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-04 22:50:48 (GMT)
commit050190d455edf1bebaa639d797be29eee06f4da7 (patch)
tree8cdaddcd82fc61a2d4edc2426244f648be60eed9 /Source/cmLocalVisualStudio6Generator.cxx
parent72be61fb57cf88f89c270f2d6069fc40d4c392ee (diff)
downloadCMake-050190d455edf1bebaa639d797be29eee06f4da7.zip
CMake-050190d455edf1bebaa639d797be29eee06f4da7.tar.gz
CMake-050190d455edf1bebaa639d797be29eee06f4da7.tar.bz2
minor fix
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio6Generator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx
index 0a12018..5aa9e47 100644
--- a/Source/cmLocalVisualStudio6Generator.cxx
+++ b/Source/cmLocalVisualStudio6Generator.cxx
@@ -289,6 +289,10 @@ void cmLocalVisualStudio6Generator::WriteDSPFile(std::ostream& fout,
{
std::string dep = cmSystemTools::GetFilenameName(
outsf->GetCustomCommand()->GetDepends()[i]);
+ if (cmSystemTools::GetFilenameLastExtension(dep) == ".exe")
+ {
+ dep = cmSystemTools::GetFilenameWithoutLastExtension(dep);
+ }
// watch for target dependencies,
std::string libPath = dep + "_CMAKE_PATH";
const char* cacheValue = m_Makefile->GetDefinition(libPath.c_str());