<commit_before>
add_compiler_flags(-DASIO_STANDALONE)

add_compiler_flags(-D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS) # Remove all of the really annoying c++17 deprection warnings

if("$<CONFIG>" STREQUAL ".")
  set(MAKEFILES TRUE)
else()
  set(MSBUILD TRUE)
endif()

macro(use_unicode_here)
  add_definitions(-D_UNICODE -DUNICODE)
endmacro()

if(DEBUG)
    add_definitions(-DDEBUG -D_DEBUG)
else()
    add_definitions(-DNDEBUG -D_NDEBUG)
endif()

add_definitions(-DNOMINMAX)

#add_linker_flags(/LTCG /INCREMENTAL:NO)

# ignore some warnings
add_linker_flags(/ignore:4075)
add_compiler_flags(/wd4503)
add_compiler_flags(/MP) # build with multi processors
add_compiler_flags(/FS) # build with multi processors
add_compiler_flags(/std:c++17)
add_compiler_flags(/EHsc)

#add_linker_flags(/NODEFAULTLIB:MSVCRTD /NODEFAULTLIB:MSVCRT)

set(WIN_TARGET 0x0601) # Windows XP SP2
set(WIN_SDK_MIN 0x0601) # Windows Vista
add_definitions(-DWINVER=${WIN_TARGET}<commit_msg>Disable building test in release mode on windows if we are using ninja<commit_after>
add_compiler_flags(-DASIO_STANDALONE)

add_compiler_flags(-D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS) # Remove all of the really annoying c++17 deprection warnings

if("$<CONFIG>" STREQUAL ".")
  set(MAKEFILES TRUE)
else()
  set(MSBUILD TRUE)
endif()

if(MAKEFILES AND "${BUILD_TYPE}" STREQUAL "Release")
  set(OFFICIAL_BUILD ON)
  set(BUILD_TOOLS OFF)
  set(BUILD_TESTS OFF)
  set(WITH_GTEST OFF)
  set(WITH_GMOCK OFF)
  set(DEBUG OFF)
endif()

macro(use_unicode_here)
  add_definitions(-D_UNICODE -DUNICODE)
endmacro()

if(DEBUG)
    add_definitions(-DDEBUG -D_DEBUG)
else()
    add_definitions(-DNDEBUG -D_NDEBUG)
endif()

add_definitions(-DNOMINMAX)

#add_linker_flags(/LTCG /INCREMENTAL:NO)

# ignore some warnings
add_linker_flags(/ignore:4075)
add_compiler_flags(/wd4503)
add_compiler_flags(/MP) # build with multi processors
add_compiler_flags(/FS) # build with multi processors
add_compiler_flags(/std:c++17)
add_compiler_flags(/EHsc)

#add_linker_flags(/NODEFAULTLIB:MSVCRTD /NODEFAULTLIB:MSVCRT)

set(WIN_TARGET 0x0601) # Windows XP SP2
set(WIN_SDK_MIN 0x0601) # Windows Vista
add_definitions(-DWINVER=${WIN_TARGET}
{'fraction_non_alphanumeric': 0.10742277547256801, 'fraction_numerical': 0.023052097740894423, 'mean_word_length': 7.037037037037037, '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': '5545522', 'n_tokens_mistral': 878, 'n_tokens_neox': 809, 'n_words': 155}