<commit_before>cmake_minimum_required (VERSION 3.5.0)

project (Smurff)

MESSAGE("smurff")

# OPTIONS

OPTION(ENABLE_BLAS "Look for any BLAS" ON)
OPTION(ENABLE_OPENBLAS "Look only for OPENBLAS library" OFF)
OPTION(ENABLE_MKL "Look only for MKL library" OFF)

OPTION(ENABLE_PROFILING "Enable performance counters" OFF)
OPTION(ENABLE_ASAN "Enable address sanitizer" OFF)
OPTION(ENABLE_TSAN "Enable thread sanitizer" OFF)

OPTION(ENABLE_VERBOSE_COMPILER_LOG "Enable verbose compilation log" OFF)
OPTION(ENABLE_VERBOSE_LINKER_LOG "Enable verbose linker log" OFF)

OPTION(ENABLE_BOOST "Enable usage of Boost for program options" ON)

OPTION(ENABLE_CMDLINE "Enable Command-Line Tools" ON)
OPTION(ENABLE_TESTS "Enable C++ Unit Tests" ON)
OPTION(ENABLE_PYTHON "Enable Python Wrapper" ON)
OPTION(ENABLE_MPI "Enable MPI Support" OFF)

SET(SMURFF_FLOAT_TYPE "double" CACHE STRING "Main compute type")

# INIT CMAKE

message("Initializing cmake ...")
MESSAGE( STATUS "CMAKE_VERSION: " ${CMAKE_VERSION} )
# the short system name, e.g. "Linux", "FreeBSD" or "Windows"
MESSAGE( STATUS "CMAKE_SYSTEM_NAME: " ${CMAKE_SYSTEM_NAME} )
# only the version part of CMAKE_SYSTEM
MESSAGE( STATUS "CMAKE_SYSTEM_VERSION: " ${CMAKE_SYSTEM_VERSION} )
# the processor name (e.g. "Intel(R) Pentium(R) M processor 2.00GHz")
MESSAGE( STATUS "CMAKE_SYSTEM_PROCESSOR: " ${CMAKE_SYSTEM_PROCESSOR} )

set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -g -fstrict-aliasing")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -g -fstrict-aliasing")

# Add new build types
SET(CMAKE_CXX_FLAGS_RELNOOPENMP
    "${GCC_RELEASE_FLAGS}"
    CACHE STRING "Flags used by the C++ compiler for release-without-OpenMP builds."
    )
SET(CMAKE_C_FLAGS_RELNOOPENMP
    "${GCC_RELEASE_FLAGS}"
    CACHE STRING "Flags used by the C compiler for release-without-OpenMP builds."
    )
SET(CMAKE_EXE_LINKER_FLAGS_RELNOOPENMP
    ""
    CACHE STRING "Flags used for linking binaries for release-without-OpenMP builds."
    )
SET(CMAKE_SHARED_LINKER_FLAGS_RELNOOPENMP
    ""
    CACHE STRING "Flags used by the shared libraries for release-without-OpenMP builds."
    )
MARK_AS_ADVANCED(
    CMAKE_CXX_FLAGS_RELNOOPENMP
    CMAKE_C_FLAGS_RELNOOPENMP
    CMAKE_EXE_LINKER_FLAGS_RELNOOPENMP
    CMAKE_SHARED_LINKER_FLAGS_RELNOOPENMP )
<commit_msg>FIX: move non-windows compile options to Linux/macOS part of CMake file<commit_after>cmake_minimum_required (VERSION 3.5.0)

project (Smurff)

MESSAGE("smurff")

# OPTIONS

OPTION(ENABLE_BLAS "Look for any BLAS" ON)
OPTION(ENABLE_OPENBLAS "Look only for OPENBLAS library" OFF)
OPTION(ENABLE_MKL "Look only for MKL library" OFF)

OPTION(ENABLE_PROFILING "Enable performance counters" OFF)
OPTION(ENABLE_ASAN "Enable address sanitizer" OFF)
OPTION(ENABLE_TSAN "Enable thread sanitizer" OFF)

OPTION(ENABLE_VERBOSE_COMPILER_LOG "Enable verbose compilation log" OFF)
OPTION(ENABLE_VERBOSE_LINKER_LOG "Enable verbose linker log" OFF)

OPTION(ENABLE_BOOST "Enable usage of Boost for program options" ON)

OPTION(ENABLE_CMDLINE "Enable Command-Line Tools" ON)
OPTION(ENABLE_TESTS "Enable C++ Unit Tests" ON)
OPTION(ENABLE_PYTHON "Enable Python Wrapper" ON)
OPTION(ENABLE_MPI "Enable MPI Support" OFF)

SET(SMURFF_FLOAT_TYPE "double" CACHE STRING "Main compute type")

# INIT CMAKE

message("Initializing cmake ...")
MESSAGE( STATUS "CMAKE_VERSION: " ${CMAKE_VERSION} )
# the short system name, e.g. "Linux", "FreeBSD" or "Windows"
MESSAGE( STATUS "CMAKE_SYSTEM_NAME: " ${CMAKE_SYSTEM_NAME} )
# only the version part of CMAKE_SYSTEM
MESSAGE( STATUS "CMAKE_SYSTEM_VERSION: " ${CMAKE_SYSTEM_VERSION} )
# the processor name (e.g. "Intel(R) Pentium(R) M processor 2.00GHz")
MESSAGE( STATUS "CMAKE_SYSTEM_PROCESSOR: " ${CMAKE_SYSTEM_PROCESSOR} )


# Add new build types
SET(CMAKE_CXX_FLAGS_RELNOOPENMP
    "${GCC_RELEASE_FLAGS}"
    CACHE STRING "Flags used by the C++ compiler for release-without-OpenMP builds."
    )
SET(CMAKE_C_FLAGS_RELNOOPENMP
    "${GCC_RELEASE_FLAGS}"
    CACHE STRING "Flags used by the C compiler for release-without-OpenMP builds."
    )
SET(CMAKE_EXE_LINKER_FLAGS_RELNOOPENMP
    ""
    CACHE STRING "Flags used for linking binaries for release-without-OpenMP builds."
    )
SET(CMAKE_SHARED_LINKER_FLAGS_RELNOOPENMP
    ""
    CACHE STRING "Flags used by the shared libraries for release-without-OpenMP builds."
    )
MARK_AS_ADVANCED(
    CMAKE_CXX_FLAGS_RELNOOPENMP
    CMAKE_C_FLAGS_RELNOOPENMP
    CMAKE_EXE_LINKER_FLAGS_RELNOOPENMP
    CMAKE_SHARED_LINKER_FLAGS_RELNOOPENMP )

{'fraction_non_alphanumeric': 0.08793410507569012, 'fraction_numerical': 0.0026714158504007124, 'mean_word_length': 5.838660578386606, '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': '452583', 'n_tokens_mistral': 1644, 'n_tokens_neox': 1562, 'n_words': 404}