Skip to content

BUG: Fix Elastix SuperBuild dep when using system ITK - #2600

Merged
blowekamp merged 1 commit into
SimpleITK:mainfrom
blowekamp:fix-elastix-superbuild-system-itk
May 21, 2026
Merged

blowekamp merged 1 commit into
SimpleITK:mainfrom
blowekamp:fix-elastix-superbuild-system-itk

Conversation

@blowekamp

@blowekamp blowekamp commented May 21, 2026 •

Copy link
Copy Markdown
Member

When SimpleITK_USE_SYSTEM_ITK is ON, the ITK ExternalProject target is never created. Unconditionally listing ITK as a dependency of the Elastix ExternalProject causes a CMake configuration error:

CMake Error at .../ExternalProject.cmake:3671 (get_property):
  get_property could not find TARGET ITK.

Fix by only adding ITK to the Elastix dependency list when not using the system ITK.

@blowekamp
blowekamp requested review from dave3d and zivy May 21, 2026 14:47
@blowekamp
blowekamp merged commit fb78dc4 into SimpleITK:main May 21, 2026
10 checks passed
@blowekamp
blowekamp deleted the fix-elastix-superbuild-system-itk branch September 9, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants