Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] itk/5.3.0: CMakeDeps generates incorrect component dependencies #26213

Closed
yzakharchuk opened this issue Dec 17, 2024 · 1 comment · Fixed by conan-io/conan#17503
Closed
Assignees
Labels
bug Something isn't working

Comments

@yzakharchuk
Copy link

Description

Starting from conan 2.10, CMakeDeps generates incorrect dependencies between ITK components in ITKTargets.cmake. In the log below, dependency to ITKTestKernel is added for each component, which is wrong.

Package and Environment Details

  • Package Name/Version: itk/5.3.0
  • Operating System+version: Linux Ubuntu 16.04
  • Compiler+version: GCC 11
  • Docker image: conanio/gcc11-ubuntu16.04
  • Conan version: conan 2.10.2
  • Python version: Python 3.7.13

Conan profile

[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux

Steps to reproduce

docker run -it --rm conanio/gcc11-ubuntu16.04
mkdir 2.9.3 2.10.2
python -m pip install --upgrade "conan<2.10"
cd 2.9.3 && conan install --requires=itk/5.3.0 --generator=CMakeDeps --build=missing
python -m pip install --upgrade conan
cd ../2.10.2/ && conan install --requires=itk/5.3.0 --generator=CMakeDeps
cd ..
diff -u ./2.9.3/ITKTargets.cmake ./2.10.2/ITKTargets.cmake

Logs

Click to expand log
conan@3d7746caba10:~$ diff -u ./2.9.3/ITKTargets.cmake ./2.10.2/ITKTargets.cmake
--- ./2.9.3/ITKTargets.cmake	2024-12-17 13:37:52.039961446 +0000
+++ ./2.10.2/ITKTargets.cmake	2024-12-17 13:39:08.836133168 +0000
@@ -349,6 +349,338 @@
     add_library(ITK::ITKTestKernel INTERFACE IMPORTED)
     set_property(TARGET ITK::ITKTestKernel PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
 endif()
+if(NOT TARGET ITK::ITKReview)
+    add_library(ITK::ITKReview INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKReview PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKFEMRegistration)
+    add_library(ITK::ITKFEMRegistration INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKFEMRegistration PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKRegistrationMethodsv4)
+    add_library(ITK::ITKRegistrationMethodsv4 INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKRegistrationMethodsv4 PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOMeshVTK)
+    add_library(ITK::ITKIOMeshVTK INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOMeshVTK PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOMeshOFF)
+    add_library(ITK::ITKIOMeshOFF INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOMeshOFF PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOMeshOBJ)
+    add_library(ITK::ITKIOMeshOBJ INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOMeshOBJ PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOMeshGifti)
+    add_library(ITK::ITKIOMeshGifti INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOMeshGifti PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOMeshFreeSurfer)
+    add_library(ITK::ITKIOMeshFreeSurfer INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOMeshFreeSurfer PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOMeshBYU)
+    add_library(ITK::ITKIOMeshBYU INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOMeshBYU PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKPDEDeformableRegistration)
+    add_library(ITK::ITKPDEDeformableRegistration INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKPDEDeformableRegistration PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKFEM)
+    add_library(ITK::ITKFEM INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKFEM PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKDeformableMesh)
+    add_library(ITK::ITKDeformableMesh INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKDeformableMesh PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKWatersheds)
+    add_library(ITK::ITKWatersheds INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKWatersheds PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKRegionGrowing)
+    add_library(ITK::ITKRegionGrowing INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKRegionGrowing PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKMarkovRandomFieldsClassifiers)
+    add_library(ITK::ITKMarkovRandomFieldsClassifiers INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKMarkovRandomFieldsClassifiers PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOTransformMatlab)
+    add_library(ITK::ITKIOTransformMatlab INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOTransformMatlab PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOTransformInsightLegacy)
+    add_library(ITK::ITKIOTransformInsightLegacy INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOTransformInsightLegacy PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOTransformHDF5)
+    add_library(ITK::ITKIOTransformHDF5 INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOTransformHDF5 PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOMeshBase)
+    add_library(ITK::ITKIOMeshBase INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOMeshBase PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOSpatialObjects)
+    add_library(ITK::ITKIOSpatialObjects INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOSpatialObjects PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKConvolution)
+    add_library(ITK::ITKConvolution INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKConvolution PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKBiasCorrection)
+    add_library(ITK::ITKBiasCorrection INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKBiasCorrection PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKImageFeature)
+    add_library(ITK::ITKImageFeature INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKImageFeature PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKLabelMap)
+    add_library(ITK::ITKLabelMap INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKLabelMap PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKQuadEdgeMeshFiltering)
+    add_library(ITK::ITKQuadEdgeMeshFiltering INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKQuadEdgeMeshFiltering PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKOptimizersv4)
+    add_library(ITK::ITKOptimizersv4 INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKOptimizersv4 PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOTransformBase)
+    add_library(ITK::ITKIOTransformBase INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOTransformBase PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOSiemens)
+    add_library(ITK::ITKIOSiemens INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOSiemens PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOGE)
+    add_library(ITK::ITKIOGE INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOGE PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKQuadEdgeMesh)
+    add_library(ITK::ITKQuadEdgeMesh INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKQuadEdgeMesh PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKSpatialObjects)
+    add_library(ITK::ITKSpatialObjects INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKSpatialObjects PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOVTK)
+    add_library(ITK::ITKIOVTK INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOVTK PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKTransformFactory)
+    add_library(ITK::ITKTransformFactory INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKTransformFactory PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOTIFF)
+    add_library(ITK::ITKIOTIFF INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOTIFF PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOStimulate)
+    add_library(ITK::ITKIOStimulate INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOStimulate PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOPNG)
+    add_library(ITK::ITKIOPNG INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOPNG PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIONRRD)
+    add_library(ITK::ITKIONRRD INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIONRRD PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIONIFTI)
+    add_library(ITK::ITKIONIFTI INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIONIFTI PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOMeta)
+    add_library(ITK::ITKIOMeta INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOMeta PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOJPEG)
+    add_library(ITK::ITKIOJPEG INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOJPEG PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOHDF5)
+    add_library(ITK::ITKIOHDF5 INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOHDF5 PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOGIPL)
+    add_library(ITK::ITKIOGIPL INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOGIPL PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOIPL)
+    add_library(ITK::ITKIOIPL INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOIPL PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOGDCM)
+    add_library(ITK::ITKIOGDCM INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOGDCM PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOCSV)
+    add_library(ITK::ITKIOCSV INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOCSV PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOBioRad)
+    add_library(ITK::ITKIOBioRad INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOBioRad PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOBMP)
+    add_library(ITK::ITKIOBMP INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOBMP PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOXML)
+    add_library(ITK::ITKIOXML INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOXML PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKOptimizers)
+    add_library(ITK::ITKOptimizers INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKOptimizers PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKMesh)
+    add_library(ITK::ITKMesh INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKMesh PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKVideoCore)
+    add_library(ITK::ITKVideoCore INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKVideoCore PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKVTK)
+    add_library(ITK::ITKVTK INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKVTK PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKKLMRegionGrowing)
+    add_library(ITK::ITKKLMRegionGrowing INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKKLMRegionGrowing PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKFFT)
+    add_library(ITK::ITKFFT INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKFFT PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKPolynomials)
+    add_library(ITK::ITKPolynomials INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKPolynomials PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOImageBase)
+    add_library(ITK::ITKIOImageBase INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOImageBase PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKPath)
+    add_library(ITK::ITKPath INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKPath PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKTransform)
+    add_library(ITK::ITKTransform INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKTransform PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKStatistics)
+    add_library(ITK::ITKStatistics INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKStatistics PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKCommon)
+    add_library(ITK::ITKCommon INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKCommon PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKVNLInstantiation)
+    add_library(ITK::ITKVNLInstantiation INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKVNLInstantiation PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKgiftiio)
+    add_library(ITK::ITKgiftiio INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKgiftiio PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::itkvnl_algo)
+    add_library(ITK::itkvnl_algo INTERFACE IMPORTED)
+    set_property(TARGET ITK::itkvnl_algo PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKniftiio)
+    add_library(ITK::ITKniftiio INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKniftiio PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::itkNetlibSlatec)
+    add_library(ITK::itkNetlibSlatec INTERFACE IMPORTED)
+    set_property(TARGET ITK::itkNetlibSlatec PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::itktestlib)
+    add_library(ITK::itktestlib INTERFACE IMPORTED)
+    set_property(TARGET ITK::itktestlib PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::itkvnl)
+    add_library(ITK::itkvnl INTERFACE IMPORTED)
+    set_property(TARGET ITK::itkvnl PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::itkopenjpeg)
+    add_library(ITK::itkopenjpeg INTERFACE IMPORTED)
+    set_property(TARGET ITK::itkopenjpeg PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::itklbfgs)
+    add_library(ITK::itklbfgs INTERFACE IMPORTED)
+    set_property(TARGET ITK::itklbfgs PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKIOPhilipsREC)
+    add_library(ITK::ITKIOPhilipsREC INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKIOPhilipsREC PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKNrrdIO)
+    add_library(ITK::ITKNrrdIO INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKNrrdIO PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKznz)
+    add_library(ITK::ITKznz INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKznz PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKDiffusionTensorImage)
+    add_library(ITK::ITKDiffusionTensorImage INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKDiffusionTensorImage PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKDenoising)
+    add_library(ITK::ITKDenoising INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKDenoising PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKDICOMParser)
+    add_library(ITK::ITKDICOMParser INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKDICOMParser PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKColormap)
+    add_library(ITK::ITKColormap INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKColormap PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKSmoothing)
+    add_library(ITK::ITKSmoothing INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKSmoothing PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKFastMarching)
+    add_library(ITK::ITKFastMarching INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKFastMarching PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKImageIntensity)
+    add_library(ITK::ITKImageIntensity INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKImageIntensity PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::ITKMetaIO)
+    add_library(ITK::ITKMetaIO INTERFACE IMPORTED)
+    set_property(TARGET ITK::ITKMetaIO PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::itkv3p_netlib)
+    add_library(ITK::itkv3p_netlib INTERFACE IMPORTED)
+    set_property(TARGET ITK::itkv3p_netlib PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::itkvcl)
+    add_library(ITK::itkvcl INTERFACE IMPORTED)
+    set_property(TARGET ITK::itkvcl PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
+if(NOT TARGET ITK::itksys)
+    add_library(ITK::itksys INTERFACE IMPORTED)
+    set_property(TARGET ITK::itksys PROPERTY INTERFACE_LINK_LIBRARIES ITKTestKernel)
+endif()
 if(NOT TARGET ITK::ITKVideoCore)
     add_library(ITK::ITKVideoCore INTERFACE IMPORTED)
     set_property(TARGET ITK::ITKVideoCore PROPERTY INTERFACE_LINK_LIBRARIES ITKVideoCore)
@AbrilRBS
Copy link
Member

Hi @yzakharchuk thanks a lot for the report, and for a way to reproduce it consistentely

This is in fact a regression on Conan 2.10. I have now proposed conan-io/conan#17503 to address this, which should make it to the next Conan release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants