# Configure VTK project stuck at \[100%\] Linking cxx executable

**URL:** https://discourse.vtk.org/t/configure-vtk-project-stuck-at-100-linking-cxx-executable/10542
**Category:** Support
**Created:** [January 26, 2023, 1:52am UTC](https://discourse.vtk.org/t/configure-vtk-project-stuck-at-100-linking-cxx-executable/10542 "2023-01-26T01:52:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sterben\_01](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sterben_01/32/6142_2.png) [@Sterben\_01](https://discourse.vtk.org/u/Sterben_01)
#### Post date: [January 26, 2023, 1:52am UTC](https://discourse.vtk.org/t/configure-vtk-project-stuck-at-100-linking-cxx-executable/10542/1 "2023-01-26T01:52:58Z")

</div>

Hi! I’m just compiled and installed the VTK 9.2.  
I have a simple project and this is my CMakeList.txt

```auto
cmake_minimum_required(VERSION 3.16)
project (Helloworld)

find_package (VTK REQUIRED)
include_directories(${VTK_INCLUDE_DIRS})

add_executable (Helloworld Helloworld.cxx)

target_link_libraries (Helloworld ${VTK_LIBRARIES})

```

But after I do all the `ccmake` stuffs, then run `make`, my project just stucked at the `[100%] Linking cxx executable`. What’s the reason?

 ![QQ截图20230125194932](https://discourse.vtk.org/uploads/default/original/2X/4/44e74ef0e1e58fa24dfb65e92c33c5ace64a1017.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [January 26, 2023, 6:40am UTC](https://discourse.vtk.org/t/configure-vtk-project-stuck-at-100-linking-cxx-executable/10542/2 "2023-01-26T06:40:04Z")

</div>

Hi @Sterben_01 ,

> [@Sterben\_01](#):
>
> `include_directories(${VTK_INCLUDE_DIRS})`

Thats pre VTK9 CMake code. Please take a look at the examples:  
[https://kitware.github.io/vtk-examples/site/Cxx/GeometricObjects/CylinderExample/](https://kitware.github.io/vtk-examples/site/Cxx/GeometricObjects/CylinderExample/)

> my project just stucked at the `[100%] Linking cxx executable`. What’s the reason?

You are probably linking with the whole of VTK, require only the components you need

Best,

---

<div class="post-metadata">

### Author: ![Sterben\_01](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sterben_01/32/6142_2.png) [@Sterben\_01](https://discourse.vtk.org/u/Sterben_01)
#### Post date: [January 26, 2023, 6:40am UTC](https://discourse.vtk.org/t/configure-vtk-project-stuck-at-100-linking-cxx-executable/10542/3 "2023-01-26T06:40:50Z")

</div>

Thank you so much!
