<commit_before>project(ITK-GDCM)
set(ITK-GDCM_THIRD_PARTY 1)

option(ITK_USE_SYSTEM_GDCM "Use an outside build of GDCM." OFF)
mark_as_advanced(ITK_USE_SYSTEM_GDCM)

if(ITK_USE_SYSTEM_GDCM)
  find_package(GDCM REQUIRED)
  set(ITK-GDCM_SYSTEM_INCLUDE_DIRS
    ${GDCM_INCLUDE_DIRS}
    )
  set(ITK-GDCM_LIBRARIES  gdcmDICT gdcmMSFF )
  set(ITK-GDCM_NO_SRC 1)
else()
  set(ITK-GDCM_INCLUDE_DIRS
    ${ITK-GDCM_BINARY_DIR}
    ${ITK-GDCM_BINARY_DIR}/src/gdcm/Source/Common
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/MediaStorageAndFileFormat
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/DataDictionary
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/Common
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/InformationObjectDefinition
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/MessageExchangeDefinition
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/DataStructureAndEncodingDefinition
    )
  check_include_file("stdint.h"       GDCM_HAVE_STDINT_H)
  if(NOT GDCM_HAVE_STDINT_H)
    # for MSVC only gdcm has a stdint.h that works for that<commit_msg>COMP: Fix ITK-GDCM build when it is the only module enabled<commit_after>project(ITK-GDCM)
set(ITK-GDCM_THIRD_PARTY 1)

option(ITK_USE_SYSTEM_GDCM "Use an outside build of GDCM." OFF)
mark_as_advanced(ITK_USE_SYSTEM_GDCM)

if(ITK_USE_SYSTEM_GDCM)
  find_package(GDCM REQUIRED)
  set(ITK-GDCM_SYSTEM_INCLUDE_DIRS
    ${GDCM_INCLUDE_DIRS}
    )
  set(ITK-GDCM_LIBRARIES  gdcmDICT gdcmMSFF )
  set(ITK-GDCM_NO_SRC 1)
else()
  set(ITK-GDCM_INCLUDE_DIRS
    ${ITK-GDCM_BINARY_DIR}
    ${ITK-GDCM_BINARY_DIR}/src/gdcm/Source/Common
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/MediaStorageAndFileFormat
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/DataDictionary
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/Common
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/InformationObjectDefinition
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/MessageExchangeDefinition
    ${ITK-GDCM_SOURCE_DIR}/src/gdcm/Source/DataStructureAndEncodingDefinition
    )
  include(CheckIncludeFile)
  check_include_file("stdint.h"       GDCM_HAVE_STDINT_H)
  if(NOT GDCM_HAVE_STDINT_H)
    # for MSVC only gdcm has a stdint.h that works for that
{'fraction_non_alphanumeric': 0.10150375939849623, 'fraction_numerical': 0.0018796992481203006, 'mean_word_length': 5.1354466858789625, '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': '3937728', 'n_tokens_mistral': 949, 'n_tokens_neox': 867, 'n_words': 104}