<commit_before>
if( DISABLE_CRYPT )
  add_compiler_flags(-DDISABLE_CRYPT)
endif()

include_directories(
  SYSTEM ${ASIO_INCLUDE_DIR}
  SYSTEM ${CMAKE_THIRD_PARTY_INCLUDE_DIR}
  SYSTEM ${CMAKE_EXTERNAL_INCLUDE_DIR}
  SYSTEM ${SPDLOG_ROOT}
  SYSTEM ${SOL2_ROOT}
  SYSTEM ${CXXOPT_ROOT}
  SYSTEM ${ENTITYX_INCLUDE_DIR}
  SYSTEM ${SQLPP_INCLUDE_DIR}
  SYSTEM ${DATE_INCLUDE_DIR}
  SYSTEM ${CONFIGURU}
  SYSTEM ${VISIT_STRUCT}
)

link_directories(
  ${CMAKE_EXTERNAL_LIBRARY_DIR}
)

if(WITH_MYSQL)
  add_compiler_flags(-DENABLE_MYSQL)
  
  include_directories(
    SYSTEM ${MYSQL_INCLUDE_DIRS}
    SYSTEM ${SQLPP_CONNECTOR_MYSQL_INCLUDE_DIR}
  )

  link_directories(
    ${MYSQL_LIBRARY_PATH}
  )
  if(MSVC)
    file(COPY "${MYSQL_LIBRARY_PATH}/libmysql.dll"
       DESTINATION "${CMAKE_BINARY_DIR}/bin/Debug")
    file(COPY "${MYSQL_LIBRARY_PATH}/libmysql.dll"
       DESTINATION "${CMAKE_BINARY_DIR}/bin/Release")
  endif()
endif()

if(WITH_CRASH_REPORTS)
  add_compiler_flags(-DENABLE_CRASH_REPORTS)
endif()

set(COTIRE_PREFIX_INCLUDE_PATHS "${CMAKE_SOURCE_DIR}/3rdparty")
set(COTIRE_PREFIX_IGNORE_PATHS "${CMAKE_SOURCE_DIR}/3rdparty/include/breakpad")
set(COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS "asio.hpp")

if(WIN32)
  set(COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS "WinSock2.h;${COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS}")
else()
  set(COTIRE_PREFIX_IGNORE_PATHS "${COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS};/usr/include/inttypes.h")
  set(COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS "/usr;${COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS}")
endif()

#set_property (DIRECTORY PROPERTY COTIRE_ENABLE_PRECOMPILED_HEADER FALSE)
set_property (DIRECTORY PROPERTY COTIRE_PREFIX_HEADER_INCLUDE_PATH ${COTIRE_PREFIX_INCLUDE_PATHS})
set_property (DIRECTORY PROPERTY COTIRE_PREFIX_HEADER_IGNORE_PATH ${COTIRE_PREFIX_IGNORE_PATHS})
set_property (DIRECTORY PROPERTY COTIRE_PREFIX_HEADER_INCLUDE_PRIORITY_PATH ${COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS})

add_subdirectory(core)<commit_msg>This should fix the copy issue<commit_after>
if( DISABLE_CRYPT )
  add_compiler_flags(-DDISABLE_CRYPT)
endif()

include_directories(
  SYSTEM ${ASIO_INCLUDE_DIR}
  SYSTEM ${CMAKE_THIRD_PARTY_INCLUDE_DIR}
  SYSTEM ${CMAKE_EXTERNAL_INCLUDE_DIR}
  SYSTEM ${SPDLOG_ROOT}
  SYSTEM ${SOL2_ROOT}
  SYSTEM ${CXXOPT_ROOT}
  SYSTEM ${ENTITYX_INCLUDE_DIR}
  SYSTEM ${SQLPP_INCLUDE_DIR}
  SYSTEM ${DATE_INCLUDE_DIR}
  SYSTEM ${CONFIGURU}
  SYSTEM ${VISIT_STRUCT}
)

link_directories(
  ${CMAKE_EXTERNAL_LIBRARY_DIR}
)

if(WITH_MYSQL)
  add_compiler_flags(-DENABLE_MYSQL)
  
  include_directories(
    SYSTEM ${MYSQL_INCLUDE_DIRS}
    SYSTEM ${SQLPP_CONNECTOR_MYSQL_INCLUDE_DIR}
  )

  link_directories(
    ${MYSQL_LIBRARY_PATH}
  )
  if(WIN32)
    file(COPY "${MYSQL_LIBRARY_PATH}/libmysql.dll"
       DESTINATION "${CMAKE_BINARY_DIR}/bin/Debug")
    file(COPY "${MYSQL_LIBRARY_PATH}/libmysql.dll"
       DESTINATION "${CMAKE_BINARY_DIR}/bin/Release")
  endif()
endif()

if(WITH_CRASH_REPORTS)
  add_compiler_flags(-DENABLE_CRASH_REPORTS)
endif()

set(COTIRE_PREFIX_INCLUDE_PATHS "${CMAKE_SOURCE_DIR}/3rdparty")
set(COTIRE_PREFIX_IGNORE_PATHS "${CMAKE_SOURCE_DIR}/3rdparty/include/breakpad")
set(COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS "asio.hpp")

if(WIN32)
  set(COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS "WinSock2.h;${COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS}")
else()
  set(COTIRE_PREFIX_IGNORE_PATHS "${COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS};/usr/include/inttypes.h")
  set(COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS "/usr;${COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS}")
endif()

#set_property (DIRECTORY PROPERTY COTIRE_ENABLE_PRECOMPILED_HEADER FALSE)
set_property (DIRECTORY PROPERTY COTIRE_PREFIX_HEADER_INCLUDE_PATH ${COTIRE_PREFIX_INCLUDE_PATHS})
set_property (DIRECTORY PROPERTY COTIRE_PREFIX_HEADER_IGNORE_PATH ${COTIRE_PREFIX_IGNORE_PATHS})
set_property (DIRECTORY PROPERTY COTIRE_PREFIX_HEADER_INCLUDE_PRIORITY_PATH ${COTIRE_PREFIX_INCLUDE_PRIORITY_PATHS})

add_subdirectory(core)
{'fraction_non_alphanumeric': 0.09846153846153846, 'fraction_numerical': 0.0035897435897435897, 'mean_word_length': 8.200471698113208, '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': '7276222', 'n_tokens_mistral': 1667, 'n_tokens_neox': 1522, 'n_words': 182}