Skip to content

IO factories in external module fails at configuration #5760

@SimonRit

Description

@SimonRit

Description

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)

This is likely caused by #5721.

Steps to Reproduce

Compile ITK.
Then download RTK and configure RTK separately.

Expected behavior

Configuration of the project.

Actual behavior

Fails with the above error

Reproducibility

100%

Versions

Latest ITK in the main branch, Ubuntu.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:BugInconsistencies or issues which will cause an incorrect result under some or all circumstances

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions