From 059ee3931ddbca2b6bd39197207779d8274b658d Mon Sep 17 00:00:00 2001 From: Brad King Date: Sat, 9 Jun 2001 20:54:06 -0400 Subject: BUG: Changed custom command generation to not use full path of output file from cable. --- Source/cmCableWrapTclCommand.cxx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Source/cmCableWrapTclCommand.cxx b/Source/cmCableWrapTclCommand.cxx index 57eea82..e38b8fb 100644 --- a/Source/cmCableWrapTclCommand.cxx +++ b/Source/cmCableWrapTclCommand.cxx @@ -111,9 +111,8 @@ void cmCableWrapTclCommand::GenerateCableFiles() const cmSystemTools::MakeDirectory((outDir+"/Tcl").c_str()); std::string packageConfigName = outDir+"/Tcl/"+m_TargetName+"_config.xml"; - std::string packageTclFileName = m_TargetName+"_tcl"; - std::string packageTclPath = outDir+"/Tcl"; - std::string packageTclFullName = packageTclPath+"/"+packageTclFileName; + std::string packageTclFileName = "Tcl/"+m_TargetName+"_tcl"; + std::string packageTclFullName = outDir+"/"+packageTclFileName; // Generate the main package configuration file for CABLE. cmGeneratedFileStream packageConfig(packageConfigName.c_str()); @@ -148,7 +147,7 @@ void cmCableWrapTclCommand::GenerateCableFiles() const depends.push_back(packageConfigName); std::vector outputs; - outputs.push_back(packageTclFullName+".cxx"); + outputs.push_back(packageTclFileName+".cxx"); m_Makefile->AddCustomCommand(packageConfigName.c_str(), command.c_str(), @@ -159,7 +158,7 @@ void cmCableWrapTclCommand::GenerateCableFiles() const // Add the generated source to the package's source list. cmSourceFile file; - file.SetName(packageTclFileName.c_str(), packageTclPath.c_str(), "cxx", false); + file.SetName(packageTclFileName.c_str(), outDir.c_str(), "cxx", false); // Set dependency hints. file.GetDepends().push_back("wrapCalls.h"); m_Makefile->AddSource(file, m_TargetName.c_str()); @@ -189,9 +188,8 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name, std::string classConfigName = outDir+"/Tcl/"+groupName+"_config_tcl.xml"; std::string classCxxName = outDir+"/Tcl/"+groupName+"_cxx.cc"; std::string classXmlName = outDir+"/Tcl/"+groupName+"_cxx.xml"; - std::string classTclFileName = groupName+"_tcl"; - std::string classTclPath = outDir+"/Tcl"; - std::string classTclFullName = classTclPath+"/"+classTclFileName; + std::string classTclFileName = "Tcl/"+groupName+"_tcl"; + std::string classTclFullName = outDir+"/"+classTclFileName; cmGeneratedFileStream classConfig(classConfigName.c_str()); if(classConfig) @@ -298,7 +296,7 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name, depends.push_back(classXmlName); std::vector outputs; - outputs.push_back(classTclFullName+".cxx"); + outputs.push_back(classTclFileName+".cxx"); m_Makefile->AddCustomCommand(classConfigName.c_str(), command.c_str(), @@ -309,7 +307,7 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name, // Add the generated source to the package's source list. cmSourceFile file; - file.SetName(classTclFileName.c_str(), classTclPath.c_str(), "cxx", false); + file.SetName(classTclFileName.c_str(), outDir.c_str(), "cxx", false); // Set dependency hints. for(cmCableClass::Sources::const_iterator source = c.SourcesBegin(); source != c.SourcesEnd(); ++source) -- cgit v0.12