<commit_before>PROJECT(OPENCOG)
SET(CMAKE_BUILD_TYPE Debug) #Release)

CMAKE_MINIMUM_REQUIRED(VERSION 2.4)

# add the 'lib' dir to cmake's module search path
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/lib/")

IF(CMAKE_COMPILER_IS_GNUCXX)
	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -g -fstack-protector -Wall")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)

# check dependencies
IF (WIN32)
	FIND_PACKAGE(PThreads REQUIRED)
	FIND_PACKAGE(STLPort REQUIRED)
	INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include/win32" ${PTHREADS_INCLUDE_DIR} ${STLPORT_INCLUDE_DIR})
	LINK_LIBRARIES(${PTHREADS_LIBRARY} ${STLPORT_LIBRARIES})
ELSE (WIN32)
	LINK_LIBRARIES(pthread)
ENDIF (WIN32)
FIND_PACKAGE(EXPAT REQUIRED)
FIND_PACKAGE(CSockets REQUIRED)
FIND_PACKAGE(OpenSSL REQUIRED)
FIND_PACKAGE(Boost REQUIRED)
FIND_PACKAGE(IODBC)
# FIND_PACKAGE(LibMemCached)
FIND_PACKAGE(Guile)

# add compiler definitions associated with the optional dependencies
IF (IODBC_FOUND)
	# Enable the use of SQL storage, if either iodbc of unixodbc is found.
	# Caution: this can also increase RAM usage significantly!
	ADD_DEFINITIONS(-DHAVE_SQL_STORAGE)
ENDIF (IODBC_FOUND)

IF (GUILE_FOUND)
	ADD_DEFINITIONS(-DHAVE_GUILE)
ENDIF (GUILE_FOUND)

# At this time,. there is no reason to build with memcached for <commit_msg>-O3 causes an ICE, -O2 ok though<commit_after>PROJECT(OPENCOG)
SET(CMAKE_BUILD_TYPE Debug) #Release)

CMAKE_MINIMUM_REQUIRED(VERSION 2.4)

# add the 'lib' dir to cmake's module search path
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/lib/")

IF(CMAKE_COMPILER_IS_GNUCXX)
	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -g -fstack-protector -Wall")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)

# check dependencies
IF (WIN32)
	FIND_PACKAGE(PThreads REQUIRED)
	FIND_PACKAGE(STLPort REQUIRED)
	INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include/win32" ${PTHREADS_INCLUDE_DIR} ${STLPORT_INCLUDE_DIR})
	LINK_LIBRARIES(${PTHREADS_LIBRARY} ${STLPORT_LIBRARIES})
ELSE (WIN32)
	LINK_LIBRARIES(pthread)
ENDIF (WIN32)
FIND_PACKAGE(EXPAT REQUIRED)
FIND_PACKAGE(CSockets REQUIRED)
FIND_PACKAGE(OpenSSL REQUIRED)
FIND_PACKAGE(Boost REQUIRED)
FIND_PACKAGE(IODBC)
# FIND_PACKAGE(LibMemCached)
FIND_PACKAGE(Guile)

# add compiler definitions associated with the optional dependencies
IF (IODBC_FOUND)
	# Enable the use of SQL storage, if either iodbc of unixodbc is found.
	# Caution: this can also increase RAM usage significantly!
	ADD_DEFINITIONS(-DHAVE_SQL_STORAGE)
ENDIF (IODBC_FOUND)

IF (GUILE_FOUND)
	ADD_DEFINITIONS(-DHAVE_GUILE)
ENDIF (GUILE_FOUND)

# At this time,. there is no reason to build with memcached for 
{'fraction_non_alphanumeric': 0.0919045756746187, 'fraction_numerical': 0.009385999217833398, 'mean_word_length': 7.671186440677966, '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': '2074734', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1009, 'n_words': 216}