# Does vtk libraries need to add as per dependency in CMake ?

**URL:** https://discourse.vtk.org/t/does-vtk-libraries-need-to-add-as-per-dependency-in-cmake/7825
**Category:** Development
**Created:** [February 12, 2022, 7:33am UTC](https://discourse.vtk.org/t/does-vtk-libraries-need-to-add-as-per-dependency-in-cmake/7825 "2022-02-12T07:33:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shrikant](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@shrikant](https://discourse.vtk.org/u/shrikant)
#### Post date: [February 12, 2022, 7:33am UTC](https://discourse.vtk.org/t/does-vtk-libraries-need-to-add-as-per-dependency-in-cmake/7825/1 "2022-02-12T07:33:51Z")

</div>

Dear all,

I’m working with docker which built vtk7.1. I am seeing my project built successfully but while linking vtk libs it gives error about not finding some reference. I have all required vtk lib added in cmake. So, do we need to follow dependency sequence while adding different vtk libs?

Shrikant

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [February 13, 2022, 1:25pm UTC](https://discourse.vtk.org/t/does-vtk-libraries-need-to-add-as-per-dependency-in-cmake/7825/2 "2022-02-13T13:25:06Z")

</div>

Hello,

VTK is highly customizable. Maybe you’re using data types in your program that were not compiled following the VTK configuration settings. We can get a better picture if you post the error messages you are getting.

regards,

Paulo
