Skip to content

Commit b05a1fe

Browse files
AlexyPellegrinihjmjohnson
authored andcommitted
COMP: Fix generation of <target>.castxml.inc files for wrapping
All module generated the same ".castxml.inc" file. This caused several issues: - Each CMake configure step repeatedly overwrote .castxml.inc, causing a full rebuild of all wrapping related files because the XML descriptions were considered out-of-date. - Wrapping of module itkVtkGlue failed, because it requires additional include directories that were removed by other modules. This change makes each module now generates its own "<module>.castxml.inc" file.
1 parent 3d8393b commit b05a1fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Wrapping/macro_files/itk_auto_load_submodules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function(generate_castxml_commandline_flags)
162162
#Write compile definitions and include paths to file. @CONFIG_CASTXML_INC_CONTENTS@ expanded in configure_file
163163
set(
164164
castxml_inc_file
165-
"${WRAPPER_LIBRARY_OUTPUT_DIR}/castxml_inputs/${library_name}.castxml.inc"
165+
"${WRAPPER_LIBRARY_OUTPUT_DIR}/castxml_inputs/${WRAPPER_LIBRARY_NAME}.castxml.inc"
166166
)
167167
configure_file(
168168
"${ITK_WRAP_CASTXML_SOURCE_DIR}/cast_xml.inc.in"

0 commit comments

Comments
 (0)