# I am having trouble with cMake construction with Ninja

**URL:** https://discourse.paraview.org/t/i-am-having-trouble-with-cmake-construction-with-ninja/13328
**Category:** ParaView Support
**Created:** [November 24, 2023, 8:25pm UTC](https://discourse.paraview.org/t/i-am-having-trouble-with-cmake-construction-with-ninja/13328 "2023-11-24T20:25:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ethan\_A](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ethan_a/32/12881_2.png) [@Ethan\_A](https://discourse.paraview.org/u/Ethan_A)
#### Post date: [November 24, 2023, 8:25pm UTC](https://discourse.paraview.org/t/i-am-having-trouble-with-cmake-construction-with-ninja/13328/1 "2023-11-24T20:25:27Z")

</div>

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

I am using the command from [https://gitlab.kitware.com/async/async-paraview/-/blob/master/Documentation/dev/build.md:](https://gitlab.kitware.com/async/async-paraview/-/blob/master/Documentation/dev/build.md:)

`cmake -G Ninja -S ./async-paraview -B ./build -DAPV_USE_PYTHON=ON -DAPV_USE_VTKM=OFF`

I’ve downloaded and have Ninja in the PATH. If there is any more information necessary or a better place to post this question please let me know.

---

<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: [November 24, 2023, 10:22pm UTC](https://discourse.paraview.org/t/i-am-having-trouble-with-cmake-construction-with-ninja/13328/2 "2023-11-24T22:22:31Z")

</div>

It looks like you have not loaded the MSVC toolchain environment. You’ll need to run `vcvarsall.bat` to load it. Or use a developer prompt. I see you’re using PowerShell; we use [this script](https://gitlab.kitware.com/vtk/vtk/-/blob/master/.gitlab/ci/vcvarsall.ps1) to load the batch file as intended. See `.gitlab/os-windows.yml` for how it gets used.
