Skip to content

BUG: Fix GPUPDEDeformable module dependencies#5781

Merged
dzenanz merged 1 commit intomainfrom
fix-gpu-pde-deformable-dependencies
Feb 8, 2026
Merged

BUG: Fix GPUPDEDeformable module dependencies#5781
dzenanz merged 1 commit intomainfrom
fix-gpu-pde-deformable-dependencies

Conversation

@blowekamp
Copy link
Copy Markdown
Member

Description

This PR fixes a compilation error in the ITKGPUPDEDeformableRegistration module where test builds were failing because required headers could not be found.

Issue

The module's public header itkGPUDemonsRegistrationFilter.h includes itkDemonsRegistrationFilter.h from the ITKPDEDeformableRegistration module, but this dependency was listed as COMPILE_DEPENDS instead of DEPENDS.

Build error from CDash:

error C1083: Cannot open include file: 'itkDemonsRegistrationFilter.h': No such file or directory

https://open.cdash.org/viewBuildError.php?buildid=11026050

Changes

Moved ITKPDEDeformableRegistration and ITKGPURegistrationCommon from COMPILE_DEPENDS to DEPENDS in itk-module.cmake.

Rationale

  • COMPILE_DEPENDS only makes headers available during compilation of the module's source files
  • DEPENDS makes headers available for tests and dependent modules
  • Since public API headers directly include headers from these modules, they must be regular dependencies

Testing

This fix resolves the compilation error reported on the Windows build on CDash.

Move ITKPDEDeformableRegistration and ITKGPURegistrationCommon from
COMPILE_DEPENDS to DEPENDS because public headers in this module
include headers from ITKPDEDeformableRegistration (specifically
itkDemonsRegistrationFilter.h). This fixes compilation errors when
building tests that cannot find the required headers.

The error was:
error C1083: Cannot open include file: 'itkDemonsRegistrationFilter.h'

COMPILE_DEPENDS only makes headers available during the compilation
of the module's source files, but not for tests or dependent modules.
Since the public API depends on these headers, they must be listed
as regular DEPENDS.
@github-actions github-actions Bot added type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances area:Registration Issues affecting the Registration module labels Feb 8, 2026
@dzenanz dzenanz merged commit 5b25f72 into main Feb 8, 2026
17 checks passed
@dzenanz dzenanz deleted the fix-gpu-pde-deformable-dependencies branch February 8, 2026 15:37
@blowekamp
Copy link
Copy Markdown
Member Author

I asked my local CoPilot to do this quick change. Hopefully it's comments and messages were correct :)

There is a need to document the change in COMPILE_DEPENDS, verify correct behavior and maybe depricate it as it does not map well to the CMAkE library interfaces.

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

Labels

area:Registration Issues affecting the Registration module type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants