<commit_before>cmake_minimum_required(VERSION 2.8.12)

if (${CMAKE_VERSION} VERSION_GREATER 3.0)
	cmake_policy(SET CMP0042 NEW) 	# fix MACOSX_RPATH
	cmake_policy(SET CMP0048 NEW) 	# allow VERSION argument in project()
	project(EVMJIT VERSION 0.9.0 LANGUAGES CXX)
else()
	project(EVMJIT)
	set(EVMJIT_VERSION "0.9.0")
	set(EVMJIT_VERSION_MAJOR 0)
	set(EVMJIT_VERSION_MINOR 9)
	set(EVMJIT_VERSION_PATCH 0)
endif()

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_AUTOMOC OFF)

if(${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
else()
	set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -Wconversion -Wno-sign-conversion -Wno-unknown-pragmas ${CMAKE_CXX_FLAGS}")
endif()

if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT ${CMAKE_BUILD_TYPE} STREQUAL "DebugSan")
	# Do not allow unresovled symbols in shared library (default on linux)
	set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
endif()

# LLVM
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT LLVM_DIR)
	# Workaround for Ubuntu broken LLVM package<commit_msg>Revert "fixed cmake policy CMP0042, MACOSX RPATH"<commit_after>cmake_minimum_required(VERSION 2.8.12)

if (${CMAKE_VERSION} VERSION_GREATER 3.0)
	cmake_policy(SET CMP0048 NEW) 	# allow VERSION argument in project()
	project(EVMJIT VERSION 0.9.0 LANGUAGES CXX)
else()
	project(EVMJIT)
	set(EVMJIT_VERSION "0.9.0")
	set(EVMJIT_VERSION_MAJOR 0)
	set(EVMJIT_VERSION_MINOR 9)
	set(EVMJIT_VERSION_PATCH 0)
endif()

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_AUTOMOC OFF)

if(${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
else()
	set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -Wconversion -Wno-sign-conversion -Wno-unknown-pragmas ${CMAKE_CXX_FLAGS}")
endif()

if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT ${CMAKE_BUILD_TYPE} STREQUAL "DebugSan")
	# Do not allow unresovled symbols in shared library (default on linux)
	set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
endif()

# LLVM
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT LLVM_DIR)
	# Workaround for Ubuntu broken LLVM package
{'fraction_non_alphanumeric': 0.11249377799900448, 'fraction_numerical': 0.024888003982080638, 'mean_word_length': 6.52808988764045, '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': '5673602', 'n_tokens_mistral': 903, 'n_tokens_neox': 832, 'n_words': 180}