Skip to content

BUG: Fix configure failure with ITK_USE_SYSTEM_MINC=ON - #7257

Merged
hjmjohnson merged 1 commit into
InsightSoftwareConsortium:mainfrom
domibel:system-minc-target
Nov 29, 2026
Merged

hjmjohnson merged 1 commit into
InsightSoftwareConsortium:mainfrom
domibel:system-minc-target

Conversation

@domibel

@domibel domibel commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

With ITK_USE_SYSTEM_MINC=ON, configure failed with:

The link interface of target "ITKMINCModule" contains:
ITK::minc2 but the target was not found

Link to the imported target LIBMINC::minc2,
which libminc exports since 2.5.0.

With ITK_USE_SYSTEM_MINC=ON, configure failed with:

    The link interface of target "ITKMINCModule" contains:
    ITK::minc2 but the target was not found

Link to the imported target LIBMINC::minc2,
which libminc exports since 2.5.0.
@github-actions github-actions Bot added type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots area:ThirdParty Issues affecting the ThirdParty module labels Nov 27, 2026
@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Fixes system MINC configuration by using LIBMINC::minc2 when the package provides it.

  • System MINC builds use the link target their package exports.

Reviews (1) · Last reviewed commit: "BUG: Fix configure failure with ITK_USE_..." · Reviewed by Greptile

@dzenanz
dzenanz requested a review from gdevenyi November 27, 2026 21:17
@hjmjohnson
hjmjohnson merged commit 4978dd0 into InsightSoftwareConsortium:main Nov 29, 2026
20 checks passed
@@ -8,7 +8,13 @@ if(ITK_USE_SYSTEM_MINC)

set(ITKMINC_SYSTEM_INCLUDE_DIRS ${LIBMINC_INCLUDE_DIRS})
set(ITKMINC_SYSTEM_LIBRARY_DIRS ${LIBMINC_LIBRARY_DIRS})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect that these would be target properties of LIBMINC:minc2 and should not be defined with mibminc >=2.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ThirdParty Issues affecting the ThirdParty module type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants