summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapTclCommand.cxx
diff options
context:
space:
mode:
authorJohn Biddiscombe <jbiddiscombe@skippingmouse.co.uk>2003-01-06 19:30:28 (GMT)
committerJohn Biddiscombe <jbiddiscombe@skippingmouse.co.uk>2003-01-06 19:30:28 (GMT)
commit413154827c61d0e9a7dba203634369eae2ea634b (patch)
tree060963910126972be96a11f78f1b3c10440829a5 /Source/cmVTKWrapTclCommand.cxx
parenta9067039199ada35450d3ecefe24a9de3f3f6dc0 (diff)
downloadCMake-413154827c61d0e9a7dba203634369eae2ea634b.zip
CMake-413154827c61d0e9a7dba203634369eae2ea634b.tar.gz
CMake-413154827c61d0e9a7dba203634369eae2ea634b.tar.bz2
Fix a problem with TCL wrapping if the source files have a relative path.
The dependency is not correctly handled
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r--Source/cmVTKWrapTclCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx
index b204170..56503fd 100644
--- a/Source/cmVTKWrapTclCommand.cxx
+++ b/Source/cmVTKWrapTclCommand.cxx
@@ -105,13 +105,15 @@ bool cmVTKWrapTclCommand::InitialPass(std::vector<std::string> const& argsIn)
if (!curr || !curr->GetPropertyAsBool("WRAP_EXCLUDE"))
{
cmSourceFile file;
+ std::string srcDir = cdir;
if (curr)
{
file.SetProperty("ABSTRACT",curr->GetProperty("ABSTRACT"));
+ srcDir = cmSystemTools::GetFilenamePath(curr->GetFullPath());
}
std::string srcName = cmSystemTools::GetFilenameWithoutExtension(*j);
std::string newName = srcName + "Tcl";
- std::string hname = cdir + "/" + srcName + ".h";
+ std::string hname = srcDir + "/" + srcName + ".h";
file.SetName(newName.c_str(), m_Makefile->GetCurrentOutputDirectory(),
"cxx",false);
m_WrapHeaders.push_back(hname);