From 319a5e007713726e1548148045b157eb286f1ef9 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 6 Nov 2001 09:35:48 -0500 Subject: BUG: CustomCommand has to use full path to Source file now --- Source/cmCableWrapTclCommand.cxx | 4 ++-- Source/cmQTWrapCPPCommand.cxx | 4 +++- Source/cmVTKWrapJavaCommand.cxx | 4 +++- Source/cmVTKWrapPythonCommand.cxx | 4 +++- Source/cmVTKWrapTclCommand.cxx | 9 ++++----- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Source/cmCableWrapTclCommand.cxx b/Source/cmCableWrapTclCommand.cxx index b1b0a7a..84cb44d 100644 --- a/Source/cmCableWrapTclCommand.cxx +++ b/Source/cmCableWrapTclCommand.cxx @@ -308,7 +308,7 @@ void cmCableWrapTclCommand::GenerateCableFiles() const depends.push_back(packageConfigName); std::vector outputs; - outputs.push_back(packageTclFileName+".cxx"); + outputs.push_back(packageTclFullName+".cxx"); m_Makefile->AddCustomCommand(packageConfigName.c_str(), command.c_str(), @@ -479,7 +479,7 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name, depends.push_back(classXmlName); std::vector outputs; - outputs.push_back(classTclFileName+".cxx"); + outputs.push_back(classTclFullName+".cxx"); m_Makefile->AddCustomCommand(classConfigName.c_str(), command.c_str(), diff --git a/Source/cmQTWrapCPPCommand.cxx b/Source/cmQTWrapCPPCommand.cxx index 8592307..f3bfc97 100644 --- a/Source/cmQTWrapCPPCommand.cxx +++ b/Source/cmQTWrapCPPCommand.cxx @@ -126,7 +126,9 @@ void cmQTWrapCPPCommand::FinalPass() m_Makefile->AddSource(m_WrapClasses[classNum],m_SourceList.c_str()); // set up moc command - std::string res = m_WrapClasses[classNum].GetSourceName() + ".cxx"; + std::string res = m_Makefile->GetCurrentOutputDirectory(); + res += "/"; + res += m_WrapClasses[classNum].GetSourceName() + ".cxx"; std::vector args; args.push_back("-o"); diff --git a/Source/cmVTKWrapJavaCommand.cxx b/Source/cmVTKWrapJavaCommand.cxx index 033cf09..bfa8235 100644 --- a/Source/cmVTKWrapJavaCommand.cxx +++ b/Source/cmVTKWrapJavaCommand.cxx @@ -124,7 +124,9 @@ void cmVTKWrapJavaCommand::FinalPass() m_Makefile->AddSource(m_WrapClasses[classNum],m_SourceList.c_str()); // wrap java - std::string res = m_WrapClasses[classNum].GetSourceName() + ".cxx"; + std::string res = m_Makefile->GetCurrentOutputDirectory(); + res += "/"; + res += m_WrapClasses[classNum].GetSourceName() + ".cxx"; std::string res2 = resultDirectory + "/" + m_OriginalNames[classNum] + ".java"; diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx index 09e8acc..56691d3 100644 --- a/Source/cmVTKWrapPythonCommand.cxx +++ b/Source/cmVTKWrapPythonCommand.cxx @@ -129,7 +129,9 @@ void cmVTKWrapPythonCommand::FinalPass() for(int classNum = 0; classNum < lastClass; classNum++) { m_Makefile->AddSource(m_WrapClasses[classNum],m_SourceList.c_str()); - std::string res = m_WrapClasses[classNum].GetSourceName() + ".cxx"; + std::string res = m_Makefile->GetCurrentOutputDirectory(); + res += "/"; + res += m_WrapClasses[classNum].GetSourceName() + ".cxx"; std::vector args; args.push_back(m_WrapHeaders[classNum]); args.push_back(hints); diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx index 66ba407..20d832c 100644 --- a/Source/cmVTKWrapTclCommand.cxx +++ b/Source/cmVTKWrapTclCommand.cxx @@ -161,15 +161,14 @@ void cmVTKWrapTclCommand::FinalPass() for(int classNum = 0; classNum < lastClass; classNum++) { m_Makefile->AddSource(m_WrapClasses[classNum],m_SourceList.c_str()); - std::string res = m_WrapClasses[classNum].GetSourceName() + ".cxx"; std::vector args; args.push_back(m_WrapHeaders[classNum]); args.push_back(hints); args.push_back((m_WrapClasses[classNum].IsAnAbstractClass() ? "0" : "1")); - std::string tmp = m_Makefile->GetCurrentOutputDirectory(); - tmp += "/"; - tmp += m_WrapClasses[classNum].GetSourceName() + ".cxx"; - args.push_back(tmp); + std::string res = m_Makefile->GetCurrentOutputDirectory(); + res += "/"; + res += m_WrapClasses[classNum].GetSourceName() + ".cxx"; + args.push_back(res); m_Makefile->AddCustomCommand(m_WrapHeaders[classNum].c_str(), wtcl.c_str(), args, depends, -- cgit v0.12