# CMake Error

**URL:** https://discourse.itk.org/t/cmake-error/3705
**Category:** Beginner Questions
**Created:** [December 14, 2020, 6:23pm UTC](https://discourse.itk.org/t/cmake-error/3705 "2020-12-14T18:23:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Afzaal786-wq](https://discourse.itk.org/user_avatar/discourse.itk.org/afzaal786-wq/32/1825_2.png) [@Afzaal786-wq](https://discourse.itk.org/u/Afzaal786-wq)
#### Post date: [December 14, 2020, 6:23pm UTC](https://discourse.itk.org/t/cmake-error/3705/1 "2020-12-14T18:23:51Z")

</div>

Hello hope you doing well, I have installed ITK 5.1.2 successfully for Gate 9.0 installation. But during configuration of ITK i got this error even file ITKConfig.cmake is present in ITK5.1.2/bin.

CMake Error at CMakeLists.txt:245 (FIND\_PACKAGE):  
By not providing “FindITK.cmake” in CMAKE\_MODULE\_PATH this project has  
asked CMake to find a package configuration file provided by “ITK”, but  
CMake did not find one.

Could not find a package configuration file provided by “ITK” (requested  
version 4.9) with any of the following names:

```
 ITKConfig.cmake
 itk-config.cmake

```

Add the installation prefix of “ITK” to CMAKE\_PREFIX\_PATH or set “ITK\_DIR”  
to a directory containing one of the above files. If “ITK” provides a  
separate development package or SDK, be sure it has been installed.

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [December 15, 2020, 9:40pm UTC](https://discourse.itk.org/t/cmake-error/3705/2 "2020-12-15T21:40:16Z")

</div>

> [@Afzaal786-wq](#):
>
> “ITK\_DIR”  
> to a directory containing one of the above files.

Was `ITK_DIR` set?
