<commit_before>SET(ITKIO_SRCS
  itkNiftiImageIO.cxx
  itkNiftiImageIOFactory.cxx
  itkAnalyzeImageIO.cxx
  itkAnalyzeImageIOFactory.cxx
  itkArchetypeSeriesFileNames.cxx
  itkBioRadImageIO.cxx
  itkBioRadImageIOFactory.cxx
  itkBMPImageIO.cxx
  itkBMPImageIOFactory.cxx
  itkBrains2HeaderBase.cxx
  itkBrains2HeaderFactory.cxx
  itkBrains2IPLHeaderInfo.cxx
  itkBrains2MaskHeaderInfo.cxx
  itkBrains2MaskImageIO.cxx
  itkBrains2MaskImageIOFactory.cxx
  itkDICOMImageIO2.cxx
  itkDICOMImageIO2Factory.cxx
  itkDICOMSeriesFileNames.cxx
  itkDicomImageIOFactory.cxx
  itkGDCMImageIO.cxx
  itkGDCMImageIOFactory.cxx
  itkGDCMSeriesFileNames.cxx
  itkGE4ImageIO.cxx
  itkGE4ImageIOFactory.cxx
  itkGE5ImageIO.cxx
  itkGE5ImageIOFactory.cxx
  itkGEAdwImageIO.cxx
  itkGEAdwImageIOFactory.cxx
  itkGiplImageIO.cxx
  itkGiplImageIOFactory.cxx
  itkIOCommon.cxx
  itkIPLCommonImageIO.cxx
  itkIPLFileNameList.cxx
  itkImageIOBase.cxx
  itkImageIOFactory.cxx
  itkImageIORegion.cxx
  itkJPEGImageIO.cxx
  itkJPEGImageIOFactory.cxx
  itkLSMImageIO.cxx
  itkLSMImageIOFactory.cxx
  itkMetaImageIO.cxx
  itkMetaImageIOFactory.cxx
  itkNrrdImageIO.cxx
  itkNrrdImageIOFactory.cxx
  itkNumericSeriesFileNames.cxx
  itkPNGImageIO.cxx
  itkPNGImageIOFactory.cxx
  itkPolygonGroupSpatialObjectXMLFile.cxx
  itkRegularExpressionSeriesFileNames.cxx
  itkSiemensVisionImageIO.cxx
  itkSiemensVisionImageIOFactory.cxx
  itkStimulateImageIO.cxx
  itkStimulateImageIOFactory.cxx
  itkTIFFImageIO.cxx
  itkTIFFImageIOFactory.cxx
  itkVTKImageIO.cxx
  itkVTKImageIOFactory.cxx
  itkXMLFile.cxx
  itkMetaArrayReader.cxx
  itkMetaArrayWriter.cxx
)

IF( NOT ITK_USE_TRANSFORM_IO_FACTORIES )
SET(ITKIO_SRCS
  ${ITKIO_SRCS}
  itkTransformFileReader.cxx
  itkTransformFileWriter.cxx
  )
ENDIF( NOT ITK_USE_TRANSFORM_IO_FACTORIES )

# Add ITKIO library
ADD_LIBRARY(ITKIO ${ITKIO_SRCS})

# Enable warnings for trunctation of 64bits to 32bits in Mac
IF (APPLE)
  IF(CMAKE_COMPILER_IS_GNUCXX)
    IF(ITK_USE_64BITS_APPLE_TRUNCATION_WARNING)
      SET_TARGET_PROPERTIES(ITKIO PROPERTIES COMPILE_FLAGS "-Wshorten-64-to-32")
    ENDIF(ITK_USE_64BITS_APPLE_TRUNCATION_WARNING)
  ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ENDIF (APPLE)

TARGET_LINK_LIBRARIES(ITKIO
ITKCommon
ITKNrrdIO
itkjpeg8
itkjpeg12
itkjpeg16
${ITK_GDCM_LIBRARIES}
${ITK_PNG_LIBRARIES}
${ITK_ZLIB_LIBRARIES}
${ITK_TIFF_LIBRARIES}
ITKSpatialObject
ITKMetaIO
ITKDICOMParser
ITKEXPAT
ITKniftiio)

IF( ITK_USE_TRANSFORM_IO_FACTORIES )
    TARGET_LINK_LIBRARIES(ITKIO ITKTransformIOReview)
ENDIF( ITK_USE_TRANSFORM_IO_FACTORIES )

IF(CMAKE_COMPILER_IS_GNUCXX)
  SET_SOURCE_FILES_PROPERTIES(itkTestDriver.cxx PROPERTIES COMPILE_FLAGS -w)
  SET_SOURCE_FILES_PROPERTIES(itkPolygonGroupSpatialObjectXMLFile.cxx PROPERTIES COMPILE_FLAGS -w)
  SET_SOURCE_FILES_PROPERTIES(itkJPEGImageIO.cxx PROPERTIES COMPILE_FLAGS -w)
  SET_SOURCE_FILES_PROPERTIES(itkPNGImageIO.cxx PROPERTIES COMPILE_FLAGS -w)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)

# Avoid anachronism warnings by Sun compilers
INCLUDE(${ITK_SOURCE_DIR}/CMake/itkCheckCXXAcceptsFlags.cmake)
itkCHECK_CXX_ACCEPTS_FLAGS("-features=no%anachronisms" SUN_COMPILER)
IF(SUN_COMPILER)
  SET_SOURCE_FILES_PROPERTIES(itkXMLFile.cxx PROPERTIES COMPILE_FLAGS -w)
ENDIF(SUN_COMPILER)

# itkTestDriver is built even when BUILD_TESTING is FALSE to:
# + allow to run WrapITK tests without the other of the ITK tests
# + be used by external code like contributions to the insight journal<commit_msg>COMP: try to eliminate test failures on tiff tests. Force optimization off for g++.<commit_after>SET(ITKIO_SRCS
  itkNiftiImageIO.cxx
  itkNiftiImageIOFactory.cxx
  itkAnalyzeImageIO.cxx
  itkAnalyzeImageIOFactory.cxx
  itkArchetypeSeriesFileNames.cxx
  itkBioRadImageIO.cxx
  itkBioRadImageIOFactory.cxx
  itkBMPImageIO.cxx
  itkBMPImageIOFactory.cxx
  itkBrains2HeaderBase.cxx
  itkBrains2HeaderFactory.cxx
  itkBrains2IPLHeaderInfo.cxx
  itkBrains2MaskHeaderInfo.cxx
  itkBrains2MaskImageIO.cxx
  itkBrains2MaskImageIOFactory.cxx
  itkDICOMImageIO2.cxx
  itkDICOMImageIO2Factory.cxx
  itkDICOMSeriesFileNames.cxx
  itkDicomImageIOFactory.cxx
  itkGDCMImageIO.cxx
  itkGDCMImageIOFactory.cxx
  itkGDCMSeriesFileNames.cxx
  itkGE4ImageIO.cxx
  itkGE4ImageIOFactory.cxx
  itkGE5ImageIO.cxx
  itkGE5ImageIOFactory.cxx
  itkGEAdwImageIO.cxx
  itkGEAdwImageIOFactory.cxx
  itkGiplImageIO.cxx
  itkGiplImageIOFactory.cxx
  itkIOCommon.cxx
  itkIPLCommonImageIO.cxx
  itkIPLFileNameList.cxx
  itkImageIOBase.cxx
  itkImageIOFactory.cxx
  itkImageIORegion.cxx
  itkJPEGImageIO.cxx
  itkJPEGImageIOFactory.cxx
  itkLSMImageIO.cxx
  itkLSMImageIOFactory.cxx
  itkMetaImageIO.cxx
  itkMetaImageIOFactory.cxx
  itkNrrdImageIO.cxx
  itkNrrdImageIOFactory.cxx
  itkNumericSeriesFileNames.cxx
  itkPNGImageIO.cxx
  itkPNGImageIOFactory.cxx
  itkPolygonGroupSpatialObjectXMLFile.cxx
  itkRegularExpressionSeriesFileNames.cxx
  itkSiemensVisionImageIO.cxx
  itkSiemensVisionImageIOFactory.cxx
  itkStimulateImageIO.cxx
  itkStimulateImageIOFactory.cxx
  itkTIFFImageIO.cxx
  itkTIFFImageIOFactory.cxx
  itkVTKImageIO.cxx
  itkVTKImageIOFactory.cxx
  itkXMLFile.cxx
  itkMetaArrayReader.cxx
  itkMetaArrayWriter.cxx
)

IF( NOT ITK_USE_TRANSFORM_IO_FACTORIES )
SET(ITKIO_SRCS
  ${ITKIO_SRCS}
  itkTransformFileReader.cxx
  itkTransformFileWriter.cxx
  )
ENDIF( NOT ITK_USE_TRANSFORM_IO_FACTORIES )

# Add ITKIO library
ADD_LIBRARY(ITKIO ${ITKIO_SRCS})

# Enable warnings for trunctation of 64bits to 32bits in Mac
IF (APPLE)
  IF(CMAKE_COMPILER_IS_GNUCXX)
    IF(ITK_USE_64BITS_APPLE_TRUNCATION_WARNING)
      SET_TARGET_PROPERTIES(ITKIO PROPERTIES COMPILE_FLAGS "-Wshorten-64-to-32")
    ENDIF(ITK_USE_64BITS_APPLE_TRUNCATION_WARNING)
  ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ENDIF (APPLE)

TARGET_LINK_LIBRARIES(ITKIO
ITKCommon
ITKNrrdIO
itkjpeg8
itkjpeg12
itkjpeg16
${ITK_GDCM_LIBRARIES}
${ITK_PNG_LIBRARIES}
${ITK_ZLIB_LIBRARIES}
${ITK_TIFF_LIBRARIES}
ITKSpatialObject
ITKMetaIO
ITKDICOMParser
ITKEXPAT
ITKniftiio)

IF( ITK_USE_TRANSFORM_IO_FACTORIES )
    TARGET_LINK_LIBRARIES(ITKIO ITKTransformIOReview)
ENDIF( ITK_USE_TRANSFORM_IO_FACTORIES )

IF(CMAKE_COMPILER_IS_GNUCXX)
  SET_SOURCE_FILES_PROPERTIES(itkTestDriver.cxx PROPERTIES COMPILE_FLAGS -w)
  SET_SOURCE_FILES_PROPERTIES(itkPolygonGroupSpatialObjectXMLFile.cxx PROPERTIES COMPILE_FLAGS -w)
  SET_SOURCE_FILES_PROPERTIES(itkJPEGImageIO.cxx PROPERTIES COMPILE_FLAGS -w)
  SET_SOURCE_FILES_PROPERTIES(itkPNGImageIO.cxx PROPERTIES COMPILE_FLAGS -w)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)

IF(CMAKE_COMPILER_IS_GNUCXX)
  SET_SOURCE_FILES_PROPERTIES(
    itkTIFFImageIO.cxx
    PROPERTIES COMPILE_FLAGS -O0
  )
ENDIF(CMAKE_COMPILER_IS_GNUCXX)

# Avoid anachronism warnings by Sun compilers
INCLUDE(${ITK_SOURCE_DIR}/CMake/itkCheckCXXAcceptsFlags.cmake)
itkCHECK_CXX_ACCEPTS_FLAGS("-features=no%anachronisms" SUN_COMPILER)
IF(SUN_COMPILER)
  SET_SOURCE_FILES_PROPERTIES(itkXMLFile.cxx PROPERTIES COMPILE_FLAGS -w)
ENDIF(SUN_COMPILER)

# itkTestDriver is built even when BUILD_TESTING is FALSE to:
# + allow to run WrapITK tests without the other of the ITK tests
# + be used by external code like contributions to the insight journal
{'fraction_non_alphanumeric': 0.050556259681734966, 'fraction_numerical': 0.008308688917053936, 'mean_word_length': 6.644779332615716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4515584', 'n_tokens_mistral': 3178, 'n_tokens_neox': 3054, 'n_words': 387}