<commit_before>cmake_minimum_required(VERSION 2.6)

# Choose new behaviour for CMP0042.
# See http://www.cmake.org/cmake/help/v3.0/policy/CMP0042.html for more details.
if (POLICY CMP0042)
	cmake_policy(SET CMP0042 NEW)
endif (POLICY CMP0042)

OPTION(ENABLE_TESTING "Build the library with tests" OFF)
OPTION(ENABLE_BENCHMARKING "Build the library with benchmarks" OFF)
OPTION(ENABLE_TESTING_THREADSAFETY "Build the thread-safety testing suite" OFF)

set(LIBRARY_NAME blackhole)

project(${LIBRARY_NAME})

find_package(Boost 1.46 REQUIRED COMPONENTS
	system
	thread)

include_directories(BEFORE SYSTEM
	${PROJECT_SOURCE_DIR}/foreign)

include_directories(${PROJECT_SOURCE_DIR}/include)

add_library(cppformat STATIC foreign/cppformat/format)

add_library(${LIBRARY_NAME} SHARED
	src/attribute
	src/formatter/string.cpp
	src/formatter/string/error
	src/formatter/string/parser
	src/formatter/string/token
	src/logger
	src/record
	src/root
	src/scoped
	src/wrapper)

# Set the Standard version.
include(CheckCXXCompilerFlag)

check_cxx_compiler_flag("-std=c++14" COMPILER_SUPPORTS_CXX14)
check_cxx_compiler_flag("-std=c++11" COMPILER_SUPPORTS_CXX11)
check_cxx_compiler_flag("-std=c++0x" COMPILER_SUPPORTS_CXX0X)

if (COMPILER_SUPPORTS_CXX14)
	add_definitions(-std=c++14)
elseif (COMPILER_SUPPORTS_CXX11)
	add_definitions(-std=c++11)<commit_msg>fix(cppformat): compile with PIC flag<commit_after>cmake_minimum_required(VERSION 2.6)

# Choose new behaviour for CMP0042.
# See http://www.cmake.org/cmake/help/v3.0/policy/CMP0042.html for more details.
if (POLICY CMP0042)
	cmake_policy(SET CMP0042 NEW)
endif (POLICY CMP0042)

OPTION(ENABLE_TESTING "Build the library with tests" OFF)
OPTION(ENABLE_BENCHMARKING "Build the library with benchmarks" OFF)
OPTION(ENABLE_TESTING_THREADSAFETY "Build the thread-safety testing suite" OFF)

set(LIBRARY_NAME blackhole)

project(${LIBRARY_NAME})

find_package(Boost 1.46 REQUIRED COMPONENTS
	system
	thread)

include_directories(BEFORE SYSTEM
	${PROJECT_SOURCE_DIR}/foreign)

include_directories(${PROJECT_SOURCE_DIR}/include)

add_library(cppformat STATIC foreign/cppformat/format)
set_target_properties(cppformat PROPERTIES
	COMPILE_FLAGS "-fPIC")

add_library(${LIBRARY_NAME} SHARED
	src/attribute
	src/formatter/string.cpp
	src/formatter/string/error
	src/formatter/string/parser
	src/formatter/string/token
	src/logger
	src/record
	src/root
	src/scoped
	src/wrapper)

# Set the Standard version.
include(CheckCXXCompilerFlag)

check_cxx_compiler_flag("-std=c++14" COMPILER_SUPPORTS_CXX14)
check_cxx_compiler_flag("-std=c++11" COMPILER_SUPPORTS_CXX11)
check_cxx_compiler_flag("-std=c++0x" COMPILER_SUPPORTS_CXX0X)

if (COMPILER_SUPPORTS_CXX14)
	add_definitions(-std=c++14)
elseif (COMPILER_SUPPORTS_CXX11)
	add_definitions(-std=c++11)
{'fraction_non_alphanumeric': 0.09945945945945946, 'fraction_numerical': 0.032432432432432434, 'mean_word_length': 7.336336336336337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3164379', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1058, 'n_words': 181}