<commit_before>project(System.Net.Http.Native)

find_library(CURL NAMES curl)
if(CURL STREQUAL CURL-NOTFOUND)
    message(SEND_ERROR "!!! Cannot find libcurl and System.Net.Http.Native cannot build without it. Try installing libcurl4-openssl-dev (or the appropriate package for your platform) !!!")
    return()
endif()

set(NATIVEHTTP_SOURCES
    pal_curlinit.cpp
    pal_easy.cpp
    pal_multi.cpp
    pal_slist.cpp
    pal_versioninfo.cpp
)

add_library(System.Net.Http.Native
    SHARED
    ${NATIVEHTTP_SOURCES}
)

target_link_libraries(System.Net.Http.Native
  ${CURL}
)<commit_msg>Fix curl discovery on NetBSD<commit_after>project(System.Net.Http.Native)

find_package(CURL)
if(NOT CURL_FOUND)
    message(FATAL_ERROR "!!! Cannot find libcurl and System.Net.Http.Native cannot build without it. Try installing libcurl4-openssl-dev (or the appropriate package for your platform) !!!")
endif(NOT CURL_FOUND)

set(NATIVEHTTP_SOURCES
    pal_curlinit.cpp
    pal_easy.cpp
    pal_multi.cpp
    pal_slist.cpp
    pal_versioninfo.cpp
)

include_directories(SYSTEM ${CURL_INCLUDE_DIR})

add_library(System.Net.Http.Native
    SHARED
    ${NATIVEHTTP_SOURCES}
)

target_link_libraries(System.Net.Http.Native
  ${CURL_LIBRARIES}
)
{'fraction_non_alphanumeric': 0.09609120521172639, 'fraction_numerical': 0.0016286644951140066, 'mean_word_length': 4.742990654205608, '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': '6098631', 'n_tokens_mistral': 462, 'n_tokens_neox': 427, 'n_words': 87}