summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapTclCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-12-20 21:15:13 (GMT)
committerBrad King <brad.king@kitware.com>2002-12-20 21:15:13 (GMT)
commit80c6f0fdec23e53daebfcd8d331f1a44004b234e (patch)
treecf9676fbb66ef3fe22e32b2c0dd708cb931362ed /Source/cmVTKWrapTclCommand.cxx
parent4e6ad941e981e81b53876508d17d1c3ef06938f2 (diff)
downloadCMake-80c6f0fdec23e53daebfcd8d331f1a44004b234e.zip
CMake-80c6f0fdec23e53daebfcd8d331f1a44004b234e.tar.gz
CMake-80c6f0fdec23e53daebfcd8d331f1a44004b234e.tar.bz2
ERR: Tcl_PkgProvide takes char*, so we cannot pass a string literal to it.
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r--Source/cmVTKWrapTclCommand.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx
index 5760a83..b204170 100644
--- a/Source/cmVTKWrapTclCommand.cxx
+++ b/Source/cmVTKWrapTclCommand.cxx
@@ -336,10 +336,11 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
fprintf(fout," %sCommand);\n",classes[i].c_str());
}
- fprintf(fout," Tcl_PkgProvide(interp, \"%s\", "
- "VTK_TCL_TO_STRING(VTK_MAJOR_VERSION) \".\" "
- "VTK_TCL_TO_STRING(VTK_MINOR_VERSION));\n",
- m_LibraryName.c_str());
+ fprintf(fout," char pkgName[]=\"%s\";\n", m_LibraryName.c_str());
+ fprintf(fout," char pkgVers[]=VTK_TCL_TO_STRING(VTK_MAJOR_VERSION)"
+ " \".\" "
+ "VTK_TCL_TO_STRING(VTK_MINOR_VERSION);\n");
+ fprintf(fout," Tcl_PkgProvide(interp, pkgName, pkgVers);\n");
fprintf(fout," return TCL_OK;\n}\n");
fclose(fout);