# Unknown CMake command "vtk\_module\_config"

**URL:** https://discourse.vtk.org/t/unknown-cmake-command-vtk-module-config/1295
**Category:** Support
**Created:** [July 7, 2019, 1:58am UTC](https://discourse.vtk.org/t/unknown-cmake-command-vtk-module-config/1295 "2019-07-07T01:58:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rogermc](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@Rogermc](https://discourse.vtk.org/u/Rogermc)
#### Post date: [July 7, 2019, 1:58am UTC](https://discourse.vtk.org/t/unknown-cmake-command-vtk-module-config/1295/1 "2019-07-07T01:58:33Z")

</div>

Mac-Mini 2018  
OSX 10.14.15  
XCode 10.2.1  
VTK Latest git pull origin master

I tried to build Examples/Tutorial/Step1/Cxx but Cmake Configure fails with:  
CMake Error at CMakeLists.txt:7 (vtk\_module\_config):  
Unknown CMake command “vtk\_module\_config”.

In fact, all examples I have tried to build fail with this error.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [July 8, 2019, 10:41am UTC](https://discourse.vtk.org/t/unknown-cmake-command-vtk-module-config/1295/2 "2019-07-08T10:41:06Z")

</div>

Some of the examples have been unloved (and untested) for a long time. I left those that are still using VTK 8’s CMake API with an `UNMAINTAINED.md` file. The examples without those have been updated. See `Examples/CMakeLists.txt` for the examples which are up-to-date.

---

<div class="post-metadata">

### Author: ![cean\_wang](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cean_wang/32/2570_2.png) [@cean\_wang](https://discourse.vtk.org/u/cean_wang)
#### Post date: [November 5, 2020, 9:49am UTC](https://discourse.vtk.org/t/unknown-cmake-command-vtk-module-config/1295/3 "2020-11-05T09:49:57Z")

</div>

I am using Win 10 64bit + VS2017 + VTK9.0.1.

There is no `UNMAINTAINED.md` file under Examples/Tutorial/Step1/Cxx, but still gives this error:

`Looking for pthread.h - not found

Found Threads: TRUE

Found OpenGL: opengl32 found components: OpenGL

CMake Error at CMakeLists.txt:5 (vtk\_module\_load):

Unknown CMake command “vtk\_module\_load”.`

---

<div class="post-metadata">

### Author: ![Astha\_Shrivastava](https://discourse.vtk.org/user_avatar/discourse.vtk.org/astha_shrivastava/32/2942_2.png) [@Astha\_Shrivastava](https://discourse.vtk.org/u/Astha_Shrivastava)
#### Post date: [February 1, 2021, 7:09am UTC](https://discourse.vtk.org/t/unknown-cmake-command-vtk-module-config/1295/4 "2021-02-01T07:09:45Z")

</div>

did you get anything on this matter?  
I am trying the same and getting the same error.
