Catalyst compilation in ParaView 5.9 fails on Windows

Hi,
I am trying to compile ParaView on my Windows machine and get an error from Catalyst’s dummy project. Compiling the same code on my Linux machine works without hickups.

Here’s what I am working with:

  • Microsoft Visual Studio 16.7.0 Preview 3.1
  • Windows SDK version 10.0.18362.0 to target Windows 10.0.19042
  • Up-to-date with release branch as of yesterday

The error that I am getting comes from dummy.cxx in the vtkcatalyst project which only contains

#error "this file should not be compiled!"

so I suppose it does what it’s supposed to. I have tried to disable Catalyst and its dependencies in CMake but that only leads to CMake not being able to complete the configuration step.

I am sure that I am missing something obvious but what is it?

Looking at the CMakeLists.txt of the corresponding project I find

add_library(dummy SHARED EXCLUDE_FROM_ALL ${CMAKE_CURRENT_BINARY_DIR}/dummy.cxx)

where EXCLUDE_FROM_ALL should ensure that the dummy project is not even built when building the ALL_BUILD project.

Disabling the dummy project manually works. ParaView compiles and works without issues.
This may be a cmake problem then.