# How to pass multiple arguments to ParaView extra CMake arguments using superbuild?

**URL:** https://discourse.paraview.org/t/how-to-pass-multiple-arguments-to-paraview-extra-cmake-arguments-using-superbuild/11883
**Category:** ParaView Support
**Created:** [April 14, 2023, 10:57am UTC](https://discourse.paraview.org/t/how-to-pass-multiple-arguments-to-paraview-extra-cmake-arguments-using-superbuild/11883 "2023-04-14T10:57:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![robertsawko](https://discourse.paraview.org/user_avatar/discourse.paraview.org/robertsawko/32/6283_2.png) [@robertsawko](https://discourse.paraview.org/u/robertsawko)
#### Post date: [April 14, 2023, 10:57am UTC](https://discourse.paraview.org/t/how-to-pass-multiple-arguments-to-paraview-extra-cmake-arguments-using-superbuild/11883/1 "2023-04-14T10:57:31Z")

</div>

A colleague and I are trying to build a containarised version of ParaView. We use Alpine OS, but we came across some issues with netcdf and cgns incompatibility. We thought to switch it off, but we are having problems specifying more than one argument:

When configuring with cmake we use [build variables describe here](https://gitlab.kitware.com/paraview/paraview-superbuild/#build-variables) and pass:

```bash
cmake \
...
   -DPARAVIEW_EXTRA_CMAKE_ARGUMENTS="-DVTK_MODULE_ENABLE_VTK_IONetCDF='NO' -DVTK_MODULE_ENABLE_VTK_netcdf='NO' -DVTK_MODULE_USE_EXTERNAL_VTK_cgns='NO'" \
...

```

but this results in:

```auto
#11 951.0 CMake Error at VTK/CMake/vtkModule.cmake:421 (message):
#11 951.0 The `VTK_MODULE_ENABLE_VTK_IONetCDF` variable must be one of `YES`, `WANT`,
#11 951.0 `DONT_WANT`, `NO`, or `DEFAULT`. Found `NO'
#11 951.0 -DVTK_MODULE_ENABLE_VTK_netcdf='NO'
#11 951.0 -DVTK_MODULE_USE_EXTERNAL_VTK_cgns='NO`.

```

Clearly the whole line is passed as the first argument value. We tried without apostrophes too. Can you please advise what’s the correct way of specifying multiple arguments?

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [April 17, 2023, 2:53pm UTC](https://discourse.paraview.org/t/how-to-pass-multiple-arguments-to-paraview-extra-cmake-arguments-using-superbuild/11883/2 "2023-04-17T14:53:53Z")

</div>

You should not quote `NO` keyword and use semicolon ( `;`) as argument separator instead of space.

---

<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: [April 24, 2023, 12:16am UTC](https://discourse.paraview.org/t/how-to-pass-multiple-arguments-to-paraview-extra-cmake-arguments-using-superbuild/11883/3 "2023-04-24T00:16:44Z")

</div>

Documentation fix: [https://gitlab.kitware.com/paraview/paraview-superbuild/-/merge\_requests/1082](https://gitlab.kitware.com/paraview/paraview-superbuild/-/merge_requests/1082)
