<commit_before>cmake_minimum_required(VERSION 2.8)

set(SOLUTION_NAME "Sofa")
project(${SOLUTION_NAME})

message(STATUS "--------------------------------------------")
message(STATUS "-------- CONFIGURING SOFA FRAMEWORK --------")
message(STATUS "--------------------------------------------")
message(STATUS "")

include(cmake/environment.cmake)

include(cmake/pre.cmake)

# build flags


#   release/debug
# unless cmake is called with CMAKE_BUILD_TYPE=Debug, release build is forced
if(NOT CMAKE_BUILD_TYPE)
    message(STATUS "No build type selected, default to Release")
    set(CMAKE_BUILD_TYPE "Release")
endif()



    
if(CMAKE_BUILD_TYPE MATCHES "Debug")
    #message(STATUS "Building Debug")
elseif(CMAKE_BUILD_TYPE MATCHES "Release")
	message(STATUS "Building Release")
    if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
        EXECUTE_PROCESS( COMMAND g++ -dumpversion OUTPUT_VARIABLE GCXX_VERSION )
        set(CXX_OPTIMIZATION_FLAGS "-O2")
        set(CXX_ARCH_FLAGS "-march='native'")<commit_msg>r9327/sofa : cmake: removed -march='native' g++ optimization (fails build on mac/gcc4.2 and ubuntu/gcc4.6)<commit_after>cmake_minimum_required(VERSION 2.8)

set(SOLUTION_NAME "Sofa")
project(${SOLUTION_NAME})

message(STATUS "--------------------------------------------")
message(STATUS "-------- CONFIGURING SOFA FRAMEWORK --------")
message(STATUS "--------------------------------------------")
message(STATUS "")

include(cmake/environment.cmake)

include(cmake/pre.cmake)

# build flags


#   release/debug
# unless cmake is called with CMAKE_BUILD_TYPE=Debug, release build is forced
if(NOT CMAKE_BUILD_TYPE)
    message(STATUS "No build type selected, default to Release")
    set(CMAKE_BUILD_TYPE "Release")
endif()



    
if(CMAKE_BUILD_TYPE MATCHES "Debug")
    #message(STATUS "Building Debug")
elseif(CMAKE_BUILD_TYPE MATCHES "Release")
	message(STATUS "Building Release")
    if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
        EXECUTE_PROCESS( COMMAND g++ -dumpversion OUTPUT_VARIABLE GCXX_VERSION )
        set(CXX_OPTIMIZATION_FLAGS "-O2")
#        set(CXX_ARCH_FLAGS "-march='native'")
{'fraction_non_alphanumeric': 0.20056764427625354, 'fraction_numerical': 0.006622516556291391, 'mean_word_length': 3.171597633136095, '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': '54081', 'n_tokens_mistral': 722, 'n_tokens_neox': 650, 'n_words': 140}