summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-02-16 21:45:47 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-02-16 21:45:47 (GMT)
commitfad49c87246d190e66fc60c1ac2698740215ef16 (patch)
tree2cf862a96c0e96ad60aa7eb586b107d7dbb818a8 /Source/cmLocalVisualStudio7Generator.cxx
parentca0230a33eea074a7beee74dd1ecc50134068359 (diff)
downloadCMake-fad49c87246d190e66fc60c1ac2698740215ef16.zip
CMake-fad49c87246d190e66fc60c1ac2698740215ef16.tar.gz
CMake-fad49c87246d190e66fc60c1ac2698740215ef16.tar.bz2
ENH: fix for vs ide
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 212eb12..ff72152 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1962,3 +1962,17 @@ GetTargetObjectFileDirectories(cmTarget* target,
std::cerr << dir << "\n";
dirs.push_back(dir);
}
+
+
+ // return the source name for the object file
+std::string cmLocalVisualStudio7Generator::GetSourceObjectName(cmSourceFile& sf )
+{
+ std::string ret = sf.GetSourceName();
+ std::string::size_type pos = ret.find("/");
+ if(pos == ret.npos)
+ {
+ return ret;
+ }
+ return ret.substr(pos+1);
+}
+