mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 14:30:27 +00:00
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," 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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user