Add removing of warnings and add comment about the file being generated in CMake

This commit is contained in:
Andy Cedilnik 2002-06-28 09:43:46 -04:00
parent 5ba65d0aa1
commit c6017182bf
1 changed files with 5 additions and 0 deletions

View File

@ -175,8 +175,13 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
return false;
}
fprintf(fout,"// Generated by cmVTKWrapPythonCommand in CMake\n\n");
fprintf(fout,"#include <string.h>\n");
fprintf(fout,"#include \"Python.h\"\n\n");
fprintf(fout,"// Handle compiler warning messages, etc.\n"
"#if defined( _MSC_VER ) && !defined(VTK_DISPLAY_WIN32_WARNINGS)\n"
"#pragma warning ( disable : 4706 )\n"
"#endif // Windows Warnings \n\n");
for (i = 0; i < classes.size(); i++)
{