# CMake error from itktiff when building RTK

**URL:** <https://discourse.itk.org/t/cmake-error-from-itktiff-when-building-rtk/7327>\
**Category:** Engineering\
**Created:** [November 25, 2024, 9:40am UTC](https://discourse.itk.org/t/cmake-error-from-itktiff-when-building-rtk/7327 "2024-11-25T09:40:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arobert01](https://discourse.itk.org/user_avatar/discourse.itk.org/arobert01/32/2554_2.png) [@arobert01](https://discourse.itk.org/u/arobert01)\
**Post date:** [November 25, 2024, 9:40am UTC](https://discourse.itk.org/t/cmake-error-from-itktiff-when-building-rtk/7327/1 "2024-11-25T09:40:44Z")

</div>

Hello,

I’m used to compile RTK independently from ITK. Today, I updated both RTK and ITK with the master branch ([this](https://github.com/InsightSoftwareConsortium/ITK/commit/2792d9ad95939193987749be3da3ca292d599a97) commit for ITK and [this one](https://github.com/RTKConsortium/RTK/commit/94d070b0101e4f0a5a7d0649a4559b8ee6d22d63) for RTK). The compilation of ITK went fine but when I tried to compile RTK I got the following CMake error:

```auto
 CMake Error at /home/arobert/Software/ITK-dev/bin/ITKTargets.cmake:463
 (set_target_properties):
   The link interface of target "itktiff" contains:

     CMath::CMath

   but the target was not found. Possible reasons include:

     * There is a typo in the target name.
     * A find_package call is missing for an IMPORTED target.
     * An ALIAS target is missing.

 Call Stack (most recent call first):
   /home/arobert/Software/ITK-dev/bin/ITKConfig.cmake:67 (include)
   CMakeLists.txt:84 (find_package)

```

This error can also be seen on the RTK [dashboard](https://my.cdash.org/builds/2734270/configure). Do you have any ideas about what could cause the problem ?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![simon.rit](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@simon.rit](https://discourse.itk.org/u/simon.rit)\
**Post date:** [November 25, 2024, 2:21pm UTC](https://discourse.itk.org/t/cmake-error-from-itktiff-when-building-rtk/7327/2 "2024-11-25T14:21:14Z")

</div>

Seems related to [Compilation Error with libtiff's CMath::CMath dependency. · Issue #4987 · InsightSoftwareConsortium/ITK · GitHub](https://github.com/InsightSoftwareConsortium/ITK/issues/4987).

---

<div class="post-metadata">

**Author:** ![arobert01](https://discourse.itk.org/user_avatar/discourse.itk.org/arobert01/32/2554_2.png) [@arobert01](https://discourse.itk.org/u/arobert01)\
**Post date:** [November 26, 2024, 12:40pm UTC](https://discourse.itk.org/t/cmake-error-from-itktiff-when-building-rtk/7327/3 "2024-11-26T12:40:57Z")

</div>

Thanks, the problem was fixed by [this](https://github.com/InsightSoftwareConsortium/ITK/pull/4989).
