CMake generates wrong VTKConfigure.H while using Python Debuggable
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
For a debug build, the pre-processor constant VTK_WINDOWS_PYTHON_DEBUGGABLE is not being defined in the VTKConfigure.h file generated by CMake, even though a correct Python Debuggable library is supplied.
This is because of bug in the CMakeLists: The CONFIGURE_FILE() is placed before the Python detection code INCLUDE(vtkWrapPython)
I have moved the CONFIGURE_FILE() code to after the INCLUDE(vtkWrapPython) and now it generates correctly. Attaching the modified CMakeLists file.