Skip to content

ITKTIFFModule can't configure #6529

Description

@kiefernforst

Description

I'm trying to build ITK git from scratch. There is a /usr/lib/libtiff.so.6.2.0 ist from the libtiff 4.7.1 package on my system. The configuration fails with:

 -- Configuring done (58.6s)
CMake Error at CMake/ITKModuleMacros.cmake:396 (target_link_libraries):
  The link interface of target "ITKTIFFModule" contains:

    ITK::optimized

  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):
  Modules/ThirdParty/TIFF/CMakeLists.txt:31 (itk_module_impl)


-- Generating done (1.5s)

Steps to Reproduce

build recipe from https://gitlab.archlinux.org/archlinux/packaging/packages/itk/-/blob/main/PKGBUILD?ref_type=heads but not Vanilla Arch

make ..$cmake_options..
cmake --build build

Actual behavior

./build/lib/cmake/ITK-6.0/Modules/ITKTIFF.cmake contains the erroneous

set(ITKTIFF_LIBRARIES "ITK::optimized;/usr/lib/libtiff.so.6.2.0;ITK::debug")

not deriving from https://github.com/InsightSoftwareConsortium/ITK/tree/main/Modules/ThirdParty/TIFF/src/itktiff

Versions

7d80605

Environment

Python 3.10
CMake 3.31.6

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions