Hello, I also tried to build statically on windows. And I’ve got the same error.
Trying to understand why this is happening, I found the generated file: vtkSMP.h
full path: /Common/Core/vtkSMP.h
and the contents of the file have strange definitions:
#define VTK_SMP_ENABLE_OPENMP 0
#define VTK_SMP_ENABLE_SEQUENTIAL 1
#define VTK_SMP_ENABLE_STDTHREAD 1
#define VTK_SMP_ENABLE_TBB 0
When I changed VTK_SMP_ENABLE_STDTHREAD equal to 0
all projects were successfully built
#define VTK_SMP_ENABLE_OPENMP 0
#define VTK_SMP_ENABLE_SEQUENTIAL 1
#define VTK_SMP_ENABLE_STDTHREAD 0
#define VTK_SMP_ENABLE_TBB 0
CMakeCache.txt contains two options enabled, when it is configured by cmake by default:
VTK_SMP_ENABLE_SEQUENTIAL:BOOL=ON
VTK_SMP_ENABLE_STDTHREAD:BOOL=ON
VTK_SMP_IMPLEMENTATION_TYPE:STRING=Sequential