summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapTclCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-09-10 19:11:15 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-09-10 19:11:15 (GMT)
commit0fe42a98572f2339ee763a475ecdd003c8a80ac8 (patch)
tree26a6c316b460bbb65de5a7d4a826d38ae9086696 /Source/cmVTKWrapTclCommand.cxx
parent5acb894e585f6f65741c102e74fd826b2250eb11 (diff)
downloadCMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.zip
CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.tar.gz
CMake-0fe42a98572f2339ee763a475ecdd003c8a80ac8.tar.bz2
various windows fixes
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r--Source/cmVTKWrapTclCommand.cxx17
1 files changed, 14 insertions, 3 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx
index 2094e25..a81b049 100644
--- a/Source/cmVTKWrapTclCommand.cxx
+++ b/Source/cmVTKWrapTclCommand.cxx
@@ -139,6 +139,8 @@ void cmVTKWrapTclCommand::FinalPass()
std::string wtcl = "${VTK_WRAP_TCL_EXE}";
std::string hints = "${VTK_WRAP_HINTS}";
+ m_Makefile->ExpandVariablesInString(hints);
+
// Create the init file
std::string res = m_LibraryName;
res += "Init.cxx";
@@ -155,14 +157,23 @@ void cmVTKWrapTclCommand::FinalPass()
// wrap all the .h files
depends.push_back(wtcl);
+ depends.push_back(hints);
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 cmd = m_WrapHeaders[classNum] + " "
- + hints + (m_WrapClasses[classNum].IsAnAbstractClass() ? " 0 " : " 1 ") + " > " + m_WrapClasses[classNum].GetSourceName() + ".cxx";
+ std::vector<std::string> args;
+ args.push_back(m_WrapHeaders[classNum]);
+ args.push_back(hints);
+ args.push_back((m_WrapClasses[classNum].IsAnAbstractClass() ? "0" : "1"));
+ args.push_back(">");
+ std::string tmp = m_Makefile->GetCurrentOutputDirectory();
+ tmp += "/";
+ tmp += m_WrapClasses[classNum].GetSourceName() + ".cxx";
+ args.push_back(tmp);
+
m_Makefile->AddCustomCommand(m_WrapHeaders[classNum].c_str(),
- wtcl.c_str(), cmd.c_str(), depends,
+ wtcl.c_str(), args, depends,
res.c_str(), m_LibraryName.c_str());
}