<commit_before>SET (include_HEADERS
  archive_writer.hpp
  archive_reader.hpp
  moor_build_config.hpp
  types.hpp
  )
SET (libmoor_SOURCES
  archive_writer.cpp
  archive_reader.cpp
  memory_writer_callback.cpp
)

IF(MSVC)
    set(CMAKE_DEBUG_POSTFIX d)
    add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
    add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
ENDIF()


SET(ADDITIONAL_LIBS "")

FIND_PACKAGE(LibArchive)

INCLUDE_DIRECTORIES(${LibArchive_INCLUDE_DIR})
LIST(APPEND ADDITIONAL_LIBS ${LibArchive_LIBRARIES})

IF (NOT MSVC)
  ADD_DEFINITIONS (-std=c++0x)
ENDIF()

ADD_LIBRARY (moor SHARED ${libmoor_SOURCES} ${INCLUDE_DIRECTORIES})
TARGET_LINK_LIBRARIES (moor ${ADDITIONAL_LIBS})

ADD_LIBRARY (moor_static STATIC ${libmoor_SOURCES} ${INCLUDE_DIRECTORIES})
SET_TARGET_PROPERTIES(moor_static PROPERTIES COMPILE_DEFINITIONS
  MOOR_STATIC)
TARGET_LINK_LIBRARIES (moor_static ${ADDITIONAL_LIBS})

IF(NOT WIN32 OR CYGWIN)
  SET_TARGET_PROPERTIES(moor_static PROPERTIES OUTPUT_NAME moor)
ENDIF()

INSTALL(TARGETS moor moor_static
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib)

INSTALL(FILES ${include_HEADERS} DESTINATION include/moor)<commit_msg>add fPIC compile flag on non msvc compilers<commit_after>SET (include_HEADERS
  archive_writer.hpp
  archive_reader.hpp
  moor_build_config.hpp
  types.hpp
  )
SET (libmoor_SOURCES
  archive_writer.cpp
  archive_reader.cpp
  memory_writer_callback.cpp
)

IF(MSVC)
    set(CMAKE_DEBUG_POSTFIX d)
    add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
    add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
ENDIF()


SET(ADDITIONAL_LIBS "")

FIND_PACKAGE(LibArchive)

INCLUDE_DIRECTORIES(${LibArchive_INCLUDE_DIR})
LIST(APPEND ADDITIONAL_LIBS ${LibArchive_LIBRARIES})

IF (NOT MSVC)
  ADD_DEFINITIONS (-std=c++0x -fPIC)
ENDIF()

ADD_LIBRARY (moor SHARED ${libmoor_SOURCES} ${INCLUDE_DIRECTORIES})
TARGET_LINK_LIBRARIES (moor ${ADDITIONAL_LIBS})

ADD_LIBRARY (moor_static STATIC ${libmoor_SOURCES} ${INCLUDE_DIRECTORIES})
SET_TARGET_PROPERTIES(moor_static PROPERTIES COMPILE_DEFINITIONS
  MOOR_STATIC)
TARGET_LINK_LIBRARIES (moor_static ${ADDITIONAL_LIBS})

IF(NOT WIN32 OR CYGWIN)
  SET_TARGET_PROPERTIES(moor_static PROPERTIES OUTPUT_NAME moor)
ENDIF()

INSTALL(TARGETS moor moor_static
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib)

INSTALL(FILES ${include_HEADERS} DESTINATION include/moor)
{'fraction_non_alphanumeric': 0.07803468208092486, 'fraction_numerical': 0.002477291494632535, 'mean_word_length': 6.524844720496894, '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': '5588618', 'n_tokens_mistral': 1009, 'n_tokens_neox': 927, 'n_words': 155}