# Catalyst compilation in ParaView 5.9 fails on Windows

**URL:** https://discourse.paraview.org/t/catalyst-compilation-in-paraview-5-9-fails-on-windows/6505
**Category:** Development
**Created:** [February 19, 2021, 7:38am UTC](https://discourse.paraview.org/t/catalyst-compilation-in-paraview-5-9-fails-on-windows/6505 "2021-02-19T07:38:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![PetiteViking](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petiteviking/32/4074_2.png) [@PetiteViking](https://discourse.paraview.org/u/PetiteViking)
#### Post date: [February 19, 2021, 7:38am UTC](https://discourse.paraview.org/t/catalyst-compilation-in-paraview-5-9-fails-on-windows/6505/1 "2021-02-19T07:38:03Z")

</div>

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

```auto
#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?

---

<div class="post-metadata">

### Author: ![PetiteViking](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petiteviking/32/4074_2.png) [@PetiteViking](https://discourse.paraview.org/u/PetiteViking)
#### Post date: [February 24, 2021, 10:59am UTC](https://discourse.paraview.org/t/catalyst-compilation-in-paraview-5-9-fails-on-windows/6505/2 "2021-02-24T10:59:01Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![PetiteViking](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petiteviking/32/4074_2.png) [@PetiteViking](https://discourse.paraview.org/u/PetiteViking)
#### Post date: [February 24, 2021, 11:30am UTC](https://discourse.paraview.org/t/catalyst-compilation-in-paraview-5-9-fails-on-windows/6505/3 "2021-02-24T11:30:45Z")

</div>

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

 ![image](https://discourse.paraview.org/uploads/default/original/2X/0/084d427cc8be73c49355aac4c1e14ba2d27ce95e.png)
