<commit_before>
# 
# Check if cpack is available
# 

if(NOT EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
    return()
endif()


# 
# Package configuration
# 

# Output packages
if(OPTION_PORTABLE_INSTALL)
    # Create a relocatable installation without any dependencies
    set(OPTION_PACK_GENERATOR "ZIP;TGZ;STGZ" CACHE STRING "Package targets")
    set(OPTION_COMPONENT_INSTALL OFF)
else()
    # Create a system installation package
    if("${CMAKE_SYSTEM_NAME}" MATCHES "Windows")
        # Windows installer
        set(OPTION_PACK_GENERATOR "NSIS" CACHE STRING "Package targets")
    elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
        # MacOS X installer
        set(OPTION_PACK_GENERATOR "PackageMaker" CACHE STRING "Package targets")
    else()
        # Linux package
        set(OPTION_PACK_GENERATOR "DEB;RPM" CACHE STRING "Package targets")
    endif()

    # Install component-wise?
    if(OPTION_SELFCONTAINED_INSTALL)
        set(OPTION_COMPONENT_INSTALL OFF)
    else()
        set(OPTION_COMPONENT_INSTALL ON)
    endif()
endif()

# Components
set(CPACK_COMPONENTS_ALL runtime dev examples docs)

set(CPACK_COMPONENT_RUNTIME_DISPLAY_NAME "Template library")
set(CPACK_COMPONENT_RUNTIME_DESCRIPTION "Runtime components for template library")

set(CPACK_COMPONENT_DEV_DISPLAY_NAME "C/C++ development files")
set(CPACK_COMPONENT_DEV_DESCRIPTION "Development files for template library")
set(CPACK_COMPONENT_DEV_DEPENDS runtime)

set(CPACK_COMPONENT_EXAMPLES_DISPLAY_NAME "Example applications")
set(CPACK_COMPONENT_EXAMPLES_DESCRIPTION "Example applications for template library")<commit_msg>Change MacOS package generator to DMG, although it does not make much sense with global installs at the moment<commit_after>
# 
# Check if cpack is available
# 

if(NOT EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
    return()
endif()


# 
# Package configuration
# 

# Output packages
if(OPTION_PORTABLE_INSTALL)
    # Create a relocatable installation without any dependencies
    set(OPTION_PACK_GENERATOR "ZIP;TGZ;STGZ" CACHE STRING "Package targets")
    set(OPTION_COMPONENT_INSTALL OFF)
else()
    # Create a system installation package
    if("${CMAKE_SYSTEM_NAME}" MATCHES "Windows")
        # Windows installer
        set(OPTION_PACK_GENERATOR "NSIS" CACHE STRING "Package targets")
    elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
        # MacOS X installer
        set(OPTION_PACK_GENERATOR "DragNDrop" CACHE STRING "Package targets")
    else()
        # Linux package
        set(OPTION_PACK_GENERATOR "DEB;RPM" CACHE STRING "Package targets")
    endif()

    # Install component-wise?
    if(OPTION_SELFCONTAINED_INSTALL)
        set(OPTION_COMPONENT_INSTALL OFF)
    else()
        set(OPTION_COMPONENT_INSTALL ON)
    endif()
endif()

# Components
set(CPACK_COMPONENTS_ALL runtime dev examples docs)

set(CPACK_COMPONENT_RUNTIME_DISPLAY_NAME "Template library")
set(CPACK_COMPONENT_RUNTIME_DESCRIPTION "Runtime components for template library")

set(CPACK_COMPONENT_DEV_DISPLAY_NAME "C/C++ development files")
set(CPACK_COMPONENT_DEV_DESCRIPTION "Development files for template library")
set(CPACK_COMPONENT_DEV_DEPENDS runtime)

set(CPACK_COMPONENT_EXAMPLES_DISPLAY_NAME "Example applications")
set(CPACK_COMPONENT_EXAMPLES_DESCRIPTION "Example applications for template library")
{'fraction_non_alphanumeric': 0.07940821256038648, 'fraction_numerical': 0.0, 'mean_word_length': 5.078899082568808, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4720816', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1056, 'n_words': 249}