<commit_before>################################################################################

# we disable EXECUTABLE mode for executables with same configs
if (CPPAN_BUILD_EXECUTABLES_WITH_SAME_CONFIG)
    set(EXECUTABLE 0)
endif()

# CPPAN_BUILD_SHARED_LIBS has influence on config vars
if (EXECUTABLE)
    if (NINJA)
        # TODO: try to work 0->1 <- why? maybe left as is?
        set(CPPAN_BUILD_SHARED_LIBS 0)
    endif()
endif()

# after all settings
set(CPPAN_GET_CHILDREN_VARIABLES 1)
get_configuration_variables_unhashed()
get_configuration_variables()
set(CPPAN_GET_CHILDREN_VARIABLES 0)

set(build_dir_name build)
set(build_dir ${current_dir}/${build_dir_name}/${config_dir})
set(export_dir ${build_dir}/exports)
set(import ${export_dir}/${variable_name}.cmake)
#set(import_fixed ${export_dir}/${variable_name}-fixed.cmake) # old
set(import_fixed ${storage_dir_exp}/${config_dir}/${target}.cmake)
set(aliases_file ${export_dir}/${variable_name}-aliases.cmake)
set(variables_file ${build_dir}.gen.vars)
set(lock ${build_dir}/cppan_generate.lock)

################################################################################

# copy to (dst) dir
set(to ${build_dir}/CMakeFiles/${CMAKE_VERSION})

if (NOT EXISTS ${import} OR<commit_msg>Build static executables on unix.<commit_after>################################################################################

# we disable EXECUTABLE mode for executables with same configs
if (CPPAN_BUILD_EXECUTABLES_WITH_SAME_CONFIG)
    set(EXECUTABLE 0)
endif()

# CPPAN_BUILD_SHARED_LIBS has influence on config vars
if (EXECUTABLE)
    # on ninja shared libs do not work (reason is lost)
    # on unix the issue is with wrong RPATH, so executables can not load their dependent .so libs
    if (NINJA OR UNIX)
        # TODO: try to work 0->1 <- why? maybe left as is?
        set(CPPAN_BUILD_SHARED_LIBS 0)
    endif()
endif()

# after all settings
set(CPPAN_GET_CHILDREN_VARIABLES 1)
get_configuration_variables_unhashed()
get_configuration_variables()
set(CPPAN_GET_CHILDREN_VARIABLES 0)

set(build_dir_name build)
set(build_dir ${current_dir}/${build_dir_name}/${config_dir})
set(export_dir ${build_dir}/exports)
set(import ${export_dir}/${variable_name}.cmake)
#set(import_fixed ${export_dir}/${variable_name}-fixed.cmake) # old
set(import_fixed ${storage_dir_exp}/${config_dir}/${target}.cmake)
set(aliases_file ${export_dir}/${variable_name}-aliases.cmake)
set(variables_file ${build_dir}.gen.vars)
set(lock ${build_dir}/cppan_generate.lock)

################################################################################

# copy to (dst) dir
set(to ${build_dir}/CMakeFiles/${CMAKE_VERSION})

if (NOT EXISTS ${import} OR
{'fraction_non_alphanumeric': 0.2241635687732342, 'fraction_numerical': 0.0044609665427509295, 'mean_word_length': 7.154545454545454, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5256306', 'n_tokens_mistral': 899, 'n_tokens_neox': 872, 'n_words': 188}