ERR: Tcl_PkgProvide takes char*, so we cannot pass a string literal to it.
This commit is contained in:
parent
4e6ad941e9
commit
80c6f0fdec
|
@ -336,10 +336,11 @@ bool cmVTKWrapTclCommand::WriteInit(const char *kitName,
|
||||||
fprintf(fout," %sCommand);\n",classes[i].c_str());
|
fprintf(fout," %sCommand);\n",classes[i].c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(fout," Tcl_PkgProvide(interp, \"%s\", "
|
fprintf(fout," char pkgName[]=\"%s\";\n", m_LibraryName.c_str());
|
||||||
"VTK_TCL_TO_STRING(VTK_MAJOR_VERSION) \".\" "
|
fprintf(fout," char pkgVers[]=VTK_TCL_TO_STRING(VTK_MAJOR_VERSION)"
|
||||||
"VTK_TCL_TO_STRING(VTK_MINOR_VERSION));\n",
|
" \".\" "
|
||||||
m_LibraryName.c_str());
|
"VTK_TCL_TO_STRING(VTK_MINOR_VERSION);\n");
|
||||||
|
fprintf(fout," Tcl_PkgProvide(interp, pkgName, pkgVers);\n");
|
||||||
fprintf(fout," return TCL_OK;\n}\n");
|
fprintf(fout," return TCL_OK;\n}\n");
|
||||||
fclose(fout);
|
fclose(fout);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue