# Module Upgradation

**URL:** https://discourse.vtk.org/t/module-upgradation/7043
**Category:** Support
**Created:** [November 2, 2021, 10:30am UTC](https://discourse.vtk.org/t/module-upgradation/7043 "2021-11-02T10:30:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Taimour](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/f1d935/32.png) [@Taimour](https://discourse.vtk.org/u/Taimour)
#### Post date: [November 2, 2021, 10:30am UTC](https://discourse.vtk.org/t/module-upgradation/7043/1 "2021-11-02T10:30:07Z")

</div>

Previously, my project worked fine with vtk580. Now I want to upgrade to latest version. When I try to do I get error vtkCommon.lib not found. I have looked an not found the file in my folder.  
Can I anyone suggest solution for this?

---

<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: [November 2, 2021, 11:52am UTC](https://discourse.vtk.org/t/module-upgradation/7043/2 "2021-11-02T11:52:23Z")

</div>

You should consume VTK via `find_package(VTK)` and use the imported targets. These targets have changed since 5.8 quite a bit, so you’ll need some other changes. Essentially, use should look something like:

```auto
find_package(VTK COMPONENTS CommonCore)
target_link_libraries(mytgt PUBLIC VTK::CommonCore)
vtk_module_autoinit(TARGETS mytgt MODULES VTK::CommonCore) # important if you're using rendering or MPI

```

---

<div class="post-metadata">

### Author: ![Taimour](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/f1d935/32.png) [@Taimour](https://discourse.vtk.org/u/Taimour)
#### Post date: [November 3, 2021, 11:27am UTC](https://discourse.vtk.org/t/module-upgradation/7043/3 "2021-11-03T11:27:37Z")

</div>

Can you please explain how to carry out these steps?
