CMake error from itktiff when building RTK

Hello,

I’m used to compile RTK independently from ITK. Today, I updated both RTK and ITK with the master branch (this commit for ITK and this one for RTK). The compilation of ITK went fine but when I tried to compile RTK I got the following CMake error:

 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. Do you have any ideas about what could cause the problem ?

Thanks for your help.

1 Like

Seems related to Compilation Error with libtiff's CMath::CMath dependency. · Issue #4987 · InsightSoftwareConsortium/ITK · GitHub.

2 Likes

Thanks, the problem was fixed by this.

1 Like