From 413154827c61d0e9a7dba203634369eae2ea634b Mon Sep 17 00:00:00 2001 From: John Biddiscombe Date: Mon, 6 Jan 2003 14:30:28 -0500 Subject: [PATCH] Fix a problem with TCL wrapping if the source files have a relative path. The dependency is not correctly handled --- Source/cmVTKWrapTclCommand.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx index b2041703c..56503fd3b 100644 --- a/Source/cmVTKWrapTclCommand.cxx +++ b/Source/cmVTKWrapTclCommand.cxx @@ -105,13 +105,15 @@ bool cmVTKWrapTclCommand::InitialPass(std::vector 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);