# Unknown CMake command "vtkMacroKitPythonWrap" in snapshot release for vtkTeem

**URL:** <https://discourse.slicer.org/t/unknown-cmake-command-vtkmacrokitpythonwrap-in-snapshot-release-for-vtkteem/13838>\
**Category:** Development\
**Tags:** build\
**Created:** [October 3, 2020, 4:19pm UTC](https://discourse.slicer.org/t/unknown-cmake-command-vtkmacrokitpythonwrap-in-snapshot-release-for-vtkteem/13838 "2020-10-03T16:19:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 3, 2020, 4:19pm UTC](https://discourse.slicer.org/t/unknown-cmake-command-vtkmacrokitpythonwrap-in-snapshot-release-for-vtkteem/13838/1 "2020-10-03T16:19:06Z")

</div>

Hi all,

I am upgrading all the projects I have to the new snapshot release, and one of them produced a strange CMake error:

```auto
Configuring library: vtkTeem
CMake Error at Libs/vtkTeem/CMakeLists.txt:149 (include):
  include could not find load file:

    vtkMacroKitPythonWrap

CMake Error at Libs/vtkTeem/CMakeLists.txt:151 (vtkMacroKitPythonWrap):
  Unknown CMake command "vtkMacroKitPythonWrap".

```

The reason it is strange is that for vtkAddon and vtkSegmentationCore the same thing does not happen (or maybe the build process does not get that far?). Anyway, before starting digging deep in what changed in CMake, I thought I ask here because I have seen lots of things changing lately around Python wrapping of CMake. What I tried so far is adding vtkTeem in lists where vtkSegmentationCore was present but not vtkTeem, but it did not help.

Do you @jcfr @lassoan have any idea or suggestion what to try? Thanks a lot!

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [October 3, 2020, 4:33pm UTC](https://discourse.slicer.org/t/unknown-cmake-command-vtkmacrokitpythonwrap-in-snapshot-release-for-vtkteem/13838/2 "2020-10-03T16:33:12Z")

</div>

> I am upgrading all the projects I have to the new snapshot release  
> Unknown CMake command “vtkMacroKitPythonWrap” in snapshot release for vtkTeem

To summarize, you are building a custom application based of [GitHub - Slicer/Slicer at v4.11.20200930](https://github.com/Slicer/Slicer/tree/v4.11.20200930) and you observe this build error ?

Was the custom app built following this pattern: [GitHub - KitwareMedical/SlicerCustomAppTemplate: Template to be used as a starting point for creating a custom 3D Slicer application](https://github.com/KitwareMedical/SlicerCustomAppTemplate) ?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 4, 2020, 4:45pm UTC](https://discourse.slicer.org/t/unknown-cmake-command-vtkmacrokitpythonwrap-in-snapshot-release-for-vtkteem/13838/3 "2020-10-04T16:45:42Z")

</div>

Yes and yes. However, only one custom app has this error and it occurs if I do repetitive clean builds.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 5, 2020, 2:55pm UTC](https://discourse.slicer.org/t/unknown-cmake-command-vtkmacrokitpythonwrap-in-snapshot-release-for-vtkteem/13838/4 "2020-10-05T14:55:55Z")

</div>

I enabled building vtkAddon and the build succeeded.
