You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IO factories in external module fails at configuration #5760
Trying to compile RTK externally after compiling the latest ITK main. I get the following error at configuration
CMake Error at /home/srit/src/itk/itk/CMake/ITKModuleMacros.cmake:429 (target_link_libraries):
Cannot specify link libraries for target "ITKImageIO" which is not built by
this project.
Call Stack (most recent call first):
/home/srit/src/itk/itk/CMake/ITKModuleExternal.cmake:202 (itk_module_impl)
CMakeLists.txt:258 (include)
Activity
SimonRit commentedon Feb 3, 2026
Sorry @blowekamp, I don't know how to solve this...
blowekamp commentedon Feb 3, 2026
I only tested RTK when is was enabled as part of the ITK build. This is RTK built against a build directory of ITK?
SimonRit commentedon Feb 3, 2026
Yes exactly. And the problem disappears if I comment out the following lines
https://github.com/RTKConsortium/RTK/blob/main/itk-module.cmake#L53-L61
I just tested ITKIOScanco and there is the same problem so it's probably preferable to use this as a smaller test.
SimonRit commentedon Feb 5, 2026
Fixed by #5763.