# paraview-5.8 : Unknown CMake command "ADD\_PARAVIEW\_PLUGIN".

**URL:** https://discourse.paraview.org/t/paraview-5-8-unknown-cmake-command-add-paraview-plugin/4834
**Category:** ParaView Support
**Created:** [July 14, 2020, 10:45am UTC](https://discourse.paraview.org/t/paraview-5-8-unknown-cmake-command-add-paraview-plugin/4834 "2020-07-14T10:45:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![fghoussen](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@fghoussen](https://discourse.paraview.org/u/fghoussen)
#### Post date: [July 14, 2020, 10:45am UTC](https://discourse.paraview.org/t/paraview-5-8-unknown-cmake-command-add-paraview-plugin/4834/1 "2020-07-14T10:45:54Z")

</div>

Hi,

Building plugin was OK with paraview-5.4.x. Moved to 5.8.0 and hit this :  
Unknown CMake command “ADD\_PARAVIEW\_PLUGIN”.

In 5.4, INCLUDE(${PARAVIEW\_USE\_FILE}) was needed in CMakeLists.txt. In 5.8 cmake says “remove that line, no more needed” : when removed ADD\_PARAVIEW\_PLUGIN is not found ?!.. Any clue ?

Note : FIND\_PACKAGE is called in a “master” CMakeLists.txt, ADD\_PARAVIEW\_PLUGIN is called in a “slave” CMakeLists.txt (included by “master” using ADD\_SUBDIRECTORY)

Franck

---

<div class="post-metadata">

### Author: ![fghoussen](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@fghoussen](https://discourse.paraview.org/u/fghoussen)
#### Post date: [July 28, 2020, 12:25pm UTC](https://discourse.paraview.org/t/paraview-5-8-unknown-cmake-command-add-paraview-plugin/4834/2 "2020-07-28T12:25:10Z")

</div>

Any clue ?

---

<div class="post-metadata">

### Author: ![olesenm](https://discourse.paraview.org/user_avatar/discourse.paraview.org/olesenm/32/17416_2.png) [@olesenm](https://discourse.paraview.org/u/olesenm)
#### Post date: [July 28, 2020, 2:26pm UTC](https://discourse.paraview.org/t/paraview-5-8-unknown-cmake-command-add-paraview-plugin/4834/3 "2020-07-28T14:26:04Z")

</div>

Many things changed for building plugins between paraview-5.6 and paraview-5.7, with some further (minor) refinements for paraview-5.8.

This might be one place to start:  
[https://discourse.paraview.org/t/building-plugins-modules-with-paraview-5-7-0-cmake/](https://discourse.paraview.org/t/building-plugins-modules-with-paraview-5-7-0-cmake/)

You need to change a few things when scanning for files etc. It might be hard to follow, but here is my real-world example for building a paraview plugin both with paraview \<= 5.6 and paraview \>= 5.7. Examining the differences might give you clues for your own plugin.

Example: [https://develop.openfoam.com/modules/visualization/-/tree/develop/src/paraview-plugins/blockMeshReader](https://develop.openfoam.com/modules/visualization/-/tree/develop/src/paraview-plugins/blockMeshReader)

---

<div class="post-metadata">

### Author: ![fghoussen](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@fghoussen](https://discourse.paraview.org/u/fghoussen)
#### Post date: [July 29, 2020, 5:33pm UTC](https://discourse.paraview.org/t/paraview-5-8-unknown-cmake-command-add-paraview-plugin/4834/4 "2020-07-29T17:33:00Z")

</div>

Waow… Doc does not help much, and, fuzzy examples blur the backbone logic (personal opinion).  
Is there a “1, 2, 3 steps” check list to describe how to migrate a plugin from older version to 5.8 ?..

---

<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: [August 4, 2020, 2:53pm UTC](https://discourse.paraview.org/t/paraview-5-8-unknown-cmake-command-add-paraview-plugin/4834/5 "2020-08-04T14:53:50Z")

</div>

Here is the doc : [https://kitware.github.io/paraview-docs/nightly/cxx/PluginMigration.html](https://kitware.github.io/paraview-docs/nightly/cxx/PluginMigration.html)

As always, take a look into Examples/Plugins in ParaView source code.
