Skip to content

Commit 96d92c3

Browse files
committed
BUG: Fix GPUPDEDeformable module dependencies
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.
1 parent a094299 commit 96d92c3

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Modules/Registration/GPUPDEDeformable/itk-module.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ itk_module(
1212
ITKCommon
1313
ITKGPUCommon
1414
ITKGPUFiniteDifference
15-
COMPILE_DEPENDS
1615
ITKPDEDeformableRegistration
1716
ITKGPURegistrationCommon
1817
TEST_DEPENDS

0 commit comments

Comments
 (0)