# There are two errors in configuring ParaView with CMake

**URL:** https://discourse.paraview.org/t/there-are-two-errors-in-configuring-paraview-with-cmake/2791
**Category:** ParaView Support
**Tags:** vtk
**Created:** [October 17, 2019, 3:31am UTC](https://discourse.paraview.org/t/there-are-two-errors-in-configuring-paraview-with-cmake/2791 "2019-10-17T03:31:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rookie](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/e47c2d/32.png) [@Rookie](https://discourse.paraview.org/u/Rookie)
#### Post date: [October 17, 2019, 3:31am UTC](https://discourse.paraview.org/t/there-are-two-errors-in-configuring-paraview-with-cmake/2791/1 "2019-10-17T03:31:33Z")

</div>

I get an error when I use CMake to configure ParaView .How should I Solve the following error?

```
Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.17134.
CMake Error at VTK/CMake/vtkModule.cmake:1384 (target_link_libraries):
  INTERFACE library can only be used with the INTERFACE keyword of
  target_link_libraries
Call Stack (most recent call first):
  VTK/Utilities/OpenGL/CMakeLists.txt:53 (vtk_module_link)

CMake Error at VTK/CMake/vtkModule.cmake:1419 (target_link_options):
  target_link_options may only set INTERFACE properties on INTERFACE targets
Call Stack (most recent call first):
  VTK/Utilities/OpenGL/CMakeLists.txt:56 (vtk_module_link_options)
```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 6:31am UTC](https://discourse.paraview.org/t/there-are-two-errors-in-configuring-paraview-with-cmake/2791/2 "2019-10-17T06:31:40Z")

</div>

Welcome to the ParaView community.

Which version of ParaView are you trying to build ?  
How did you recover the sources ?  
Which version of windows are you using ?  
Which version of CMake are you using ?  
Which generator are you using ?

---

<div class="post-metadata">

### Author: ![Rookie](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/e47c2d/32.png) [@Rookie](https://discourse.paraview.org/u/Rookie)
#### Post date: [October 17, 2019, 6:43am UTC](https://discourse.paraview.org/t/there-are-two-errors-in-configuring-paraview-with-cmake/2791/3 "2019-10-17T06:43:33Z")

</div>

Thank you for your answer.  
I am using paraview5.7 version  
I used this command to get the source code “git clone [https://gitlab.kitware.com/paraview/paraview.git”](https://gitlab.kitware.com/paraview/paraview.git%E2%80%9D)  
Windows version is windows 10  
CMake version is 3.16.0  
Not yet generated

 ![Snipaste_2019-10-17_14-40-31](https://discourse.paraview.org/uploads/default/original/2X/9/9afbacd726360b8ed45df1abc3179e9b99564bbe.png)

---

<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: [October 17, 2019, 1:26pm UTC](https://discourse.paraview.org/t/there-are-two-errors-in-configuring-paraview-with-cmake/2791/4 "2019-10-17T13:26:52Z")

</div>

This was fixed in VTK recently. I’ll add it to the pile for 5.7.1. [https://gitlab.kitware.com/vtk/vtk/merge\_requests/6060](https://gitlab.kitware.com/vtk/vtk/merge_requests/6060)
