Skip to content

Commit 1bb8dc1

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 4e6cadf commit 1bb8dc1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Wrapping/Generators/CastXML/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ else()
3030
set(_castxml_hash)
3131
set(_castxml_version 2025.09.03)
3232
set(_castxml_git_tag v0.6.13)
33+
# castxml_git_tag v0.6.13 currently not compatible with AppleClang 17 (XCode 26)
34+
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
35+
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "17")
36+
message(
37+
FATAL_ERROR
38+
"Apple Clang ${CMAKE_CXX_COMPILER_VERSION} is not supported. Need AppleClang < 17."
39+
)
40+
endif()
41+
endif()
42+
3343
# If 64 bit Linux build host, use the CastXML binary
3444
if(
3545
CMAKE_HOST_SYSTEM_NAME

0 commit comments

Comments
 (0)