<commit_before>cmake_minimum_required(VERSION 3.13.4)
project(fgOpenGL LANGUAGES C CXX VERSION 0.1.0)
option(DYNAMIC_RUNTIME "if true, dynamically links (/MD) to the C++ runtime on MSVC. Otherwise, statically links (/MT)" OFF)
option(BUILD_SHARED_LIBS "enable shared library" ON)

find_package(glfw3 REQUIRED)
find_package(Freetype REQUIRED)
find_package(harfbuzz REQUIRED)
find_package(SOIL REQUIRED)
find_package(OpenGL REQUIRED)

if(NOT WIN32)
  find_package(Fontconfig REQUIRED)
  if(NOT Fontconfig_FOUND)
    message(FATAL_ERROR "Can't find fontconfig! Required to make fonts work on linux.")
  endif()
  list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../deps/freetype2/builds/cmake)
  find_package(BrotliDec)
endif()

if(MSVC)
  set(RUNTIME_FLAG "MT")
  if(DYNAMIC_RUNTIME)
    set(RUNTIME_FLAG "MD")
  endif()
else()
  set(CPP_WARNINGS "-Wall -Wno-attributes -Wno-unknown-pragmas -Wno-missing-braces -Wno-unused-function -Wno-comment -Wno-char-subscripts -Wno-sign-compare -Wno-unused-variable -Wno-switch -Wno-parentheses")
endif()

if(USE32bit)
  set(BIN_DIR "bin-x86")
else()
  set(BIN_DIR "bin-x64")
endif()

set(CMAKE_VERBOSE_MAKEFILE TRUE)
set(CMAKE_CXX_STANDARD 17)<commit_msg>Fix brotli check<commit_after>cmake_minimum_required(VERSION 3.13.4)
project(fgOpenGL LANGUAGES C CXX VERSION 0.1.0)
option(DYNAMIC_RUNTIME "if true, dynamically links (/MD) to the C++ runtime on MSVC. Otherwise, statically links (/MT)" OFF)
option(BUILD_SHARED_LIBS "enable shared library" ON)

find_package(glfw3 REQUIRED)
find_package(Freetype REQUIRED)
find_package(harfbuzz REQUIRED)
find_package(SOIL REQUIRED)
find_package(OpenGL REQUIRED)

if(NOT WIN32)
  find_package(Fontconfig REQUIRED)
  if(NOT Fontconfig_FOUND)
    message(FATAL_ERROR "Can't find fontconfig! Required to make fonts work on linux.")
  endif()
  list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../deps/freetype2/builds/cmake)
  find_package(BrotliDec)
  if(NOT BrotliDec_FOUND)
	set(BROTLIDEC_LIBRARIES "")
  endif()
endif()

if(MSVC)
  set(RUNTIME_FLAG "MT")
  if(DYNAMIC_RUNTIME)
    set(RUNTIME_FLAG "MD")
  endif()
else()
  set(CPP_WARNINGS "-Wall -Wno-attributes -Wno-unknown-pragmas -Wno-missing-braces -Wno-unused-function -Wno-comment -Wno-char-subscripts -Wno-sign-compare -Wno-unused-variable -Wno-switch -Wno-parentheses")
endif()

if(USE32bit)
  set(BIN_DIR "bin-x86")
else()
  set(BIN_DIR "bin-x64")
endif()

set(CMAKE_VERBOSE_MAKEFILE TRUE)
set(CMAKE_CXX_STANDARD 17)
{'fraction_non_alphanumeric': 0.11707317073170732, 'fraction_numerical': 0.015447154471544716, 'mean_word_length': 5.855153203342619, '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': '5250750', 'n_tokens_mistral': 1028, 'n_tokens_neox': 962, 'n_words': 195}