<commit_before>cmake_minimum_required(VERSION 2.8)
project(AMGCL)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

#----------------------------------------------------------------------------
# Find Boost
#----------------------------------------------------------------------------
option(
    BOOST_TEST_DYN_LINK
    "Link tests against dynamic version of boost unittest library"
    ON
    )

if (WIN32)
    set(Boost_USE_STATIC_LIBS ON)
else ()
  if (BOOST_TEST_DYN_LINK)
    add_definitions(-DBOOST_TEST_DYN_LINK)
  endif ()
endif ()

set(BOOST_COMPONENTS<commit_msg>Provide an option to compile with static Boost libraries<commit_after>cmake_minimum_required(VERSION 2.8)
project(AMGCL)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

#----------------------------------------------------------------------------
# Find Boost
#----------------------------------------------------------------------------
if (WIN32)
    set(Boost_USE_STATIC_LIBS ON)
else ()
    option(
        USE_STATIC_BOOST_LIBS
        "Use static versions of Boost libraries"
        OFF
        )

    if (USE_STATIC_BOOST_LIBS)
        set(Boost_USE_STATIC_LIBS ON)
    else()
        set(Boost_USE_STATIC_LIBS OFF)
        add_definitions(-DBOOST_TEST_DYN_LINK)
    endif()
endif ()

set(BOOST_COMPONENTS
{'fraction_non_alphanumeric': 0.29589465530596437, 'fraction_numerical': 0.006196746707978312, 'mean_word_length': 1.584, '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': '2074720', 'n_tokens_mistral': 389, 'n_tokens_neox': 357, 'n_words': 67}