Skip to content

Commit fe0c52f

Browse files
kian-weimerhjmjohnson
authored andcommitted
BUG: Prevent append from duplicating arrays contents.
The CMake variable ITK_WRAP_PYTHON_SWIG_EXT is repeatedly appended to. In this case, It is refrenced twice during the append operation causing its contents to duplicate.
1 parent fe9bbb6 commit fe0c52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Wrapping/TypedefMacros.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ macro(itk_wrap_simple_type wrap_class swig_name)
13261326
endif()
13271327

13281328
if("${cpp_name}" STREQUAL "itk::LabelMap" AND NOT "${swig_name}" MATCHES "Pointer$")
1329-
set(ITK_WRAP_PYTHON_SWIG_EXT "${ITK_WRAP_PYTHON_SWIG_EXT}${ITK_WRAP_PYTHON_SWIG_EXT}DECL_PYTHON_LABELMAP_CLASS(${swig_name})\n")
1329+
set(ITK_WRAP_PYTHON_SWIG_EXT "${ITK_WRAP_PYTHON_SWIG_EXT}DECL_PYTHON_LABELMAP_CLASS(${swig_name})\n")
13301330
endif()
13311331

13321332
if("${cpp_name}" STREQUAL "itk::ComponentTreeNode")

0 commit comments

Comments
 (0)