Skip to content

Commit b4f5f18

Browse files
committed
COMP: AppleClang 17 does not support wrapping
castxml fails to configure ITK properly FAILED: [code=1] Wrapping/Modules/ITKCommon/itkVersorPython.cpp Wrapping/Generators/Python/itk/itkVersorPython.py <ITK_BLD>/Wrapping/Modules/ITKCommon/itkVersorPython.cpp <ITK_BLD>/Wrapping/Generators/Python/itk/itkVersorPython.py cd <ITK_BLD>/Wrapping/Typedefs/python && \ /opt/homebrew/bin/ccache <ITK_BLD>/Wrapping/Generators/SwigInterface/swigmacos-arm64-2024-03-26-master/bin/swig \ -c++ -python -fastdispatch -fvirtual -features autodoc=2 -doxygen -Werror -w302 -w303 -w312 -w314 -w361 -w362 -w350 -w383 -w384 -w389 -w394 -w395 -w467 -w508 -w509 \ -o <ITK_BLD>/Wrapping/Modules/ITKCommon/itkVersorPython.cpp \ -I<ITK_BLD>/Wrapping/Generators/SwigInterface/swigmacos-arm64-2024-03-26-master/share/swig/4.3.0/python -I<ITK_BLD>/Wrapping/Generators/SwigInterface/swigmacos-arm64-2024-03-26-master/share/swig/4.3.0 -I<ITK_SRC>/Wrapping/Generators -I<ITK_BLD>/Wrapping/Typedefs/python -I<ITK_BLD>/Wrapping/Typedefs \ -outdir <ITK_BLD>/Wrapping/Generators/Python/itk <ITK_BLD>/Wrapping/Typedefs/itkVersor.i The problem originates with the xml used to generate <ITK_BLD>/Wrapping/Modules/ITKCommon/itkVersorPython.cpp
1 parent cd1aa3d commit b4f5f18

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Wrapping/Generators/CastXML/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ else()
2929
set(_castxml_url)
3030
set(_castxml_hash)
3131
set(_castxml_version 2025.09.03)
32+
# castxml 2025.09.03 currently not compatible with AppleClang 17 (XCode 26)
33+
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
34+
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "17")
35+
message(
36+
FATAL_ERROR
37+
"Apple Clang ${CMAKE_CXX_COMPILER_VERSION} is not supported. Need AppleClang < 17."
38+
)
39+
endif()
40+
endif()
3241

3342
# If 64 bit Linux build host, use the CastXML binary
3443
if(

0 commit comments

Comments
 (0)