<commit_before>include(PrecompiledHeader)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=libc++") # Apparently Clang on Mac needs this...
endif()

set (SDL2_BUILDING_LIBRARY 1)
if (MSVC)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /fp:fast")
	set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL /sdl /Oi /Ot /Oy")
	set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG")
	set(CMAKE_STATIC_LINKER_FLAGS_RELEASE "${CMAKE_STATIC_LINKER_FLAGS_RELEASE} /LTCG")
	set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /LTCG")

	if (CMAKE_INCLUDE_PATH)
		find_Package(SDL2 REQUIRED)
		find_package(OggVorbis REQUIRED)
		find_package(OpenGL REQUIRED)
		find_package(Boost REQUIRED)
	else()
		set(SDL2_LIBRARIES "")
		set(Boost_FILESYSTEM_LIBRARY "")
		set(Boost_SYSTEM_LIBRARY "")
		set(Boost_THREAD_LIBRARY "")
		set(OGG_LIBRARY "")
		set(VORBIS_LIBRARY "")
		set(VORBISFILE_LIBRARY "")
	endif()
	set(VORBISENC_LIBRARY "")
else()
	set(EXTRA_LIBS pthread)
	set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")

	if(EMSCRIPTEN)
		set(SDL2_LIBRARIES "")
		set(OGG_LIBRARY "")
		set(VORBIS_LIBRARY "")
		set(VORBISFILE_LIBRARY "")
	else()
		find_Package(SDL2 REQUIRED)
		find_package(OggVorbis REQUIRED)
	endif()

	find_package(OpenGL REQUIRED)
	find_package(Boost COMPONENTS system filesystem thread REQUIRED)
endif()

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DGSL_THROW_ON_CONTRACT_VIOLATION")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DGSL_UNENFORCED_ON_CONTRACT_VIOLATION")<commit_msg>Try finding lib.<commit_after>include(PrecompiledHeader)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=libc++") # Apparently Clang on Mac needs this...
endif()

if (CMAKE_LIBRARY_PATH)
	link_directories(CMAKE_INCLUDE_PATH)
endif()

set (SDL2_BUILDING_LIBRARY 1)
if (MSVC)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /fp:fast")
	set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL /sdl /Oi /Ot /Oy")
	set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG")
	set(CMAKE_STATIC_LINKER_FLAGS_RELEASE "${CMAKE_STATIC_LINKER_FLAGS_RELEASE} /LTCG")
	set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /LTCG")

	if (CMAKE_INCLUDE_PATH)
		find_Package(SDL2 REQUIRED)
		find_package(OggVorbis REQUIRED)
		find_package(OpenGL REQUIRED)
		find_package(Boost COMPONENTS system filesystem REQUIRED)
	else()
		set(SDL2_LIBRARIES "")
		set(Boost_FILESYSTEM_LIBRARY "")
		set(Boost_SYSTEM_LIBRARY "")
		set(Boost_THREAD_LIBRARY "")
		set(OGG_LIBRARY "")
		set(VORBIS_LIBRARY "")
		set(VORBISFILE_LIBRARY "")
	endif()
	set(VORBISENC_LIBRARY "")
else()
	set(EXTRA_LIBS pthread)
	set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")

	if(EMSCRIPTEN)
		set(SDL2_LIBRARIES "")
		set(OGG_LIBRARY "")
		set(VORBIS_LIBRARY "")
		set(VORBISFILE_LIBRARY "")
	else()
		find_Package(SDL2 REQUIRED)
		find_package(OggVorbis REQUIRED)
	endif()

	find_package(OpenGL REQUIRED)
	find_package(Boost COMPONENTS system filesystem thread REQUIRED)
endif()

message("filesystem: " ${Boost_FILESYSTEM_LIBRARY})
message("system: " ${Boost_SYSTEM_LIBRARY})

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DGSL_THROW_ON_CONTRACT_VIOLATION")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DGSL_UNENFORCED_ON_CONTRACT_VIOLATION")
{'fraction_non_alphanumeric': 0.1141820212171971, 'fraction_numerical': 0.005583472920156337, 'mean_word_length': 8.047979797979798, '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': '4006154', 'n_tokens_mistral': 1707, 'n_tokens_neox': 1468, 'n_words': 206}