# ParaView Superbuild Failing on Windows

**URL:** https://discourse.paraview.org/t/paraview-superbuild-failing-on-windows/7941
**Category:** ParaView Support
**Created:** [September 4, 2021, 10:58pm UTC](https://discourse.paraview.org/t/paraview-superbuild-failing-on-windows/7941 "2021-09-04T22:58:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![adamgranthendry](https://discourse.paraview.org/user_avatar/discourse.paraview.org/adamgranthendry/32/7472_2.png) [@adamgranthendry](https://discourse.paraview.org/u/adamgranthendry)
#### Post date: [September 4, 2021, 10:58pm UTC](https://discourse.paraview.org/t/paraview-superbuild-failing-on-windows/7941/1 "2021-09-04T22:58:09Z")

</div>

I am trying to build the ParaView Superbuild on Windows 10 and am running into an error with CMake GUI:

```auto
CMake Error at superbuild/cmake/SuperbuildUtils.cmake:45 (message):
  CMAKE_BUILD_TYPE must be one of: Release, RelWithDebInfo (found Debug).
Call Stack (most recent call first):
  superbuild/CMakeLists.txt:29 (include)

```

Below is my setup:

### Hardware

**OS:** Windows 10 Enterprise, x64-bit, Build 1909  
**CPU:** 2x Intel(R) Xeon(R) Gold 6248R  
**Disk:** 2TB NVMe M.2 SSD  
**RAM:** 192 GB DDR4  
**Compute GPUs:** 2x NVIDIA Quadro RTX8000 in TCC mode with NVLink  
**Display GPU:** 1x NVIDIA Quadro RTX4000

### Software

**ParaView:** _Master branch cloned from repo into subfolder `src` with_

```auto
> cd C:\Paraview
> git clone --recursive https://gitlab.kitware.com/paraview/paraview-superbuild.git src

```

in an `x64 Native Tools Command Prompt for VS 2019` in Administrator mode.

**Visual Studio:** [Visual Studio 16 2019 Community][1]  
**Windows SDK:** [10.0.19041.0][2], targeting 10.0.18363  
**Python:** [3.8.10 x64-bit][3]  
**CMake:** [3.21.1][4] (_I use `CMake-GUI`_)  
**vcpkg:** [2021-08-12][5]

If anyone can provide me help to figure out why this error is occurring, I would greatly appreciate it. I’ve reviewed a couple of similar posts and the most relevant appears to be this:

[[Windows] Release configuration fails when running ninja install](https://gitlab.kitware.com/paraview/paraview-superbuild/-/issues/75)

Thank you!

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [September 5, 2021, 2:58am UTC](https://discourse.paraview.org/t/paraview-superbuild-failing-on-windows/7941/2 "2021-09-05T02:58:56Z")

</div>

Yes, this is an intentional limitation; you must set `CMAKE_BUILD_TYPE` on Windows. Why it defaults to `Debug` is some legacy CMake behavior, but we can’t tell what was default versus explicitly requested, so all we can do is error and punt (since guessing what might be wanted is difficult).

I would recommend using `Release` and then setting `RelWithDebInfo` for the various `CMAKE_BUILD_TYPE_<project>` variables that are offered for the projects you _do_ care about (FWIW, not many offer it). This is all covered in the README (though admittedly, probably not in the most approachable way). Improvements that can be made there or in the error message would be appreciated.
