<commit_before>cmake_minimum_required(VERSION 2.6)
PROJECT(cpp CXX)
set(BUILD_CLIENT_TESTS $ENV{BUILD_CLIENT_TESTS})

#SET (CMAKE_VERBOSE_MAKEFILE true)

add_definitions(-D_FILE_OFFSET_BITS=64)

# Set variables and required libraries.
##########################################
set(CMAKE_CXX_FLAGS "-Wall -Wno-unused-function -Wno-sign-compare")

# Set paths for required thirdparty libraries.
set(CLIENT_GOOGLE_PROTOBUF_CPP "${CMAKE_SOURCE_DIR}/thirdparty/protobuf-2.3.0")
set(CLIENT_GOOGLE_PROTOBUF_CPP_LIBRARY "${CLIENT_GOOGLE_PROTOBUF_CPP}/src/.libs/libprotobuf.a")
set(CLIENT_GOOGLE_TEST_CPP "${CMAKE_SOURCE_DIR}/thirdparty/gtest-1.5.0")
set(CLIENT_GOOGLE_TEST_CPP_LIBRARY "${CLIENT_GOOGLE_TEST_CPP}/lib/.libs/libgtest.a")
set(CLIENT_GOOGLE_TEST_CPP_MAIN "${CLIENT_GOOGLE_TEST_CPP}/lib/.libs/libgtest_main.a")

# Set required libraries.
set(LIBFUSE "fuse")
SET(LIBATTR "attr")
IF(APPLE)
  # No libattr on mac.
  SET(LIBATTR "")
  # On Apple we use the environment variable BOOST_ROOT to point to a local boost installation and we link the built boost libraries statically.
  SET(Boost_USE_STATIC_LIBS true)
  # Tell gcc to compile 10.4 compatible files (does not work otherwise on older Macs).
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4")
ENDIF(APPLE)

# Set required thirdparty libraries.
# Finding the boost libraries may fail. If existing, we point FIND_PACKAGE to /usr/lib64.
if(EXISTS "/usr/lib64/libboost_system.so")
  set(BOOST_LIBRARYDIR "/usr/lib64")<commit_msg>client: Removed CXX_FLAGS option macosx-version-min again as it did break mount.xtreemfs.<commit_after>cmake_minimum_required(VERSION 2.6)
PROJECT(cpp CXX)
set(BUILD_CLIENT_TESTS $ENV{BUILD_CLIENT_TESTS})

#SET (CMAKE_VERBOSE_MAKEFILE true)

add_definitions(-D_FILE_OFFSET_BITS=64)

# Set variables and required libraries.
##########################################
set(CMAKE_CXX_FLAGS "-Wall -Wno-unused-function -Wno-sign-compare")

# Set paths for required thirdparty libraries.
set(CLIENT_GOOGLE_PROTOBUF_CPP "${CMAKE_SOURCE_DIR}/thirdparty/protobuf-2.3.0")
set(CLIENT_GOOGLE_PROTOBUF_CPP_LIBRARY "${CLIENT_GOOGLE_PROTOBUF_CPP}/src/.libs/libprotobuf.a")
set(CLIENT_GOOGLE_TEST_CPP "${CMAKE_SOURCE_DIR}/thirdparty/gtest-1.5.0")
set(CLIENT_GOOGLE_TEST_CPP_LIBRARY "${CLIENT_GOOGLE_TEST_CPP}/lib/.libs/libgtest.a")
set(CLIENT_GOOGLE_TEST_CPP_MAIN "${CLIENT_GOOGLE_TEST_CPP}/lib/.libs/libgtest_main.a")

# Set required libraries.
set(LIBFUSE "fuse")
SET(LIBATTR "attr")
IF(APPLE)
  # No libattr on mac.
  SET(LIBATTR "")
  # On Apple we use the environment variable BOOST_ROOT to point to a local boost installation and we link the built boost libraries statically.
  SET(Boost_USE_STATIC_LIBS true)
  # Update 8/12/2011: Setting macosx-version-min does break mount.xtreemfs for unknown reasons - so disabled for now.
  # Tell gcc to compile 10.4 compatible files (does not work otherwise on older Macs).
  #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4")
ENDIF(APPLE)

# Set required thirdparty libraries.
# Finding the boost libraries may fail. If existing, we point FIND_PACKAGE to /usr/lib64.
if(EXISTS "/usr/lib64/libboost_system.so")
  set(BOOST_LIBRARYDIR "/usr/lib64")
{'fraction_non_alphanumeric': 0.12980919612136377, 'fraction_numerical': 0.01595245542696278, 'mean_word_length': 6.368663594470046, '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': '611493', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1118, 'n_words': 247}