summaryrefslogtreecommitdiffstats
path: root/Source
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
parentca0230a33eea074a7beee74dd1ecc50134068359 (diff)
downloadCMake-fad49c87246d190e66fc60c1ac2698740215ef16.zip
CMake-fad49c87246d190e66fc60c1ac2698740215ef16.tar.gz
CMake-fad49c87246d190e66fc60c1ac2698740215ef16.tar.bz2
ENH: fix for vs ide
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx14
-rw-r--r--Source/cmLocalVisualStudio7Generator.h4
2 files changed, 17 insertions, 1 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);
+}
+
diff --git a/Source/cmLocalVisualStudio7Generator.h b/Source/cmLocalVisualStudio7Generator.h
index 746e657..22147c7 100644
--- a/Source/cmLocalVisualStudio7Generator.h
+++ b/Source/cmLocalVisualStudio7Generator.h
@@ -68,7 +68,9 @@ public:
virtual void ConfigureFinalPass();
void GetTargetObjectFileDirectories(cmTarget* target,
std::vector<std::string>&
- dirs);
+ dirs);
+ // return the source name for the object file
+ virtual std::string GetSourceObjectName(cmSourceFile& );
private:
typedef cmLocalVisualStudio7GeneratorOptions Options;