<commit_before>
cmake_minimum_required (VERSION 2.6)
project (MCServer)

include_directories ("${PROJECT_SOURCE_DIR}/../")

SET (SRCS
	CriticalSection.cpp
	Errors.cpp
	Event.cpp
	File.cpp
	GZipFile.cpp
	IsThread.cpp
	ListenThread.cpp
	Semaphore.cpp
	Sleep.cpp
	Socket.cpp
	SocketThreads.cpp
	Thread.cpp
	Timer.cpp)

SET (HDRS
	CriticalSection.h
	Errors.h
	Event.h
	File.h
	GZipFile.h
	IsThread.h
	ListenThread.h
	Queue.h
	Semaphore.h
	Sleep.h
	Socket.h
	SocketThreads.h
	Thread.h
	Timer.h)

if(NOT MSVC)
	add_library(OSSupport ${SRCS} ${HDRS})

	if(NOT APPLE)
		target_link_libraries(OSSupport rt)
	endif()

    if(UNIX)
        target_link_libraries(OSSupport pthread)
    endif()
endif()<commit_msg>Fixed potential linker errors with mingw, as it isn't MSVC and it isn't APPLE.<commit_after>
cmake_minimum_required (VERSION 2.6)
project (MCServer)

include_directories ("${PROJECT_SOURCE_DIR}/../")

SET (SRCS
	CriticalSection.cpp
	Errors.cpp
	Event.cpp
	File.cpp
	GZipFile.cpp
	IsThread.cpp
	ListenThread.cpp
	Semaphore.cpp
	Sleep.cpp
	Socket.cpp
	SocketThreads.cpp
	Thread.cpp
	Timer.cpp)

SET (HDRS
	CriticalSection.h
	Errors.h
	Event.h
	File.h
	GZipFile.h
	IsThread.h
	ListenThread.h
	Queue.h
	Semaphore.h
	Sleep.h
	Socket.h
	SocketThreads.h
	Thread.h
	Timer.h)

if(NOT MSVC)
	add_library(OSSupport ${SRCS} ${HDRS})

    if(UNIX)
		if(NOT APPLE)
			target_link_libraries(OSSupport rt)
		endif()

        target_link_libraries(OSSupport pthread)
    endif()
endif()
{'fraction_non_alphanumeric': 0.10340136054421768, 'fraction_numerical': 0.0027210884353741495, 'mean_word_length': 3.9695945945945947, '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': '7530421', 'n_tokens_mistral': 644, 'n_tokens_neox': 601, 'n_words': 120}