<commit_before>
if (BOOST_INCLUDES)
  include_directories (${BOOST_INCLUDES})
endif (BOOST_INCLUDES)

if (PYTHON_INCLUDES)
  include_directories (${PYTHON_INCLUDES})
endif (PYTHON_INCLUDES)

if (WCSLIB_INCLUDES)
  include_directories (
    ${WCSLIB_INCLUDES}
    )
endif (WCSLIB_INCLUDES)

add_library (wcslib SHARED wcslib.cpp)

set_target_properties(wcs
  PROPERTIES
  PREFIX ""
#  LINK_FLAGS "-undefined dynamic_lookup"
  )

## Linker instructions

if (APPLE)
  set_target_properties (wcstools
    PROPERTIES
    LINK_FLAGS "-fPIC -bundle -headerpad_max_install_names -undefined dynamic_lookup"
    )
else (APPLE)
  set_target_properties (wcstools
    PROPERTIES
    LINK_FLAGS "-fPIC -shared"<commit_msg>Whoops; let's fix the wcslib build for trunk as well<commit_after>
if (BOOST_INCLUDES)
  include_directories (${BOOST_INCLUDES})
endif (BOOST_INCLUDES)

if (PYTHON_INCLUDES)
  include_directories (${PYTHON_INCLUDES})
endif (PYTHON_INCLUDES)

if (WCSLIB_INCLUDES)
  include_directories (
    ${WCSLIB_INCLUDES}
    )
endif (WCSLIB_INCLUDES)

add_library (wcslib SHARED wcslib.cpp)
message(STATUS "boost python lib = ${Boost_PYTHON_LIBRARY}")

target_link_libraries (wcslib wcs ${Boost_PYTHON_LIBRARY})
set_target_properties(wcslib
  PROPERTIES
  PREFIX ""
#  LINK_FLAGS "-undefined dynamic_lookup"
  )

## Linker instructions

if (APPLE)
  set_target_properties (wcslib
    PROPERTIES
    LINK_FLAGS "-fPIC -bundle -headerpad_max_install_names -undefined dynamic_lookup"
    )
else (APPLE)
  set_target_properties (wcslib
    PROPERTIES
    LINK_FLAGS "-shared"
{'fraction_non_alphanumeric': 0.08545918367346939, 'fraction_numerical': 0.0, 'mean_word_length': 5.326612903225806, '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': '4212525', 'n_tokens_mistral': 630, 'n_tokens_neox': 593, 'n_words': 116}