<commit_before>###########################################################################
# Helper macros
macro(_set_default variable value)
	if(NOT ${variable})
		set(${variable} ${value})
	endif()
endmacro()

###########################################################################
# Hardcoded libraries for platforms where we've got precompiled libraries.

###########################################################################
# Path to the folder with precompiled libarries.
# We demand libraries folders to be called exactly the same for all platforms.
if(APPLE)
	set(_lib_DIR "${CMAKE_SOURCE_DIR}/../lib/darwin-9.x.universal")
elseif(WIN32)
	if(NOT MSVC12 OR NOT CMAKE_CL_64)
		# TODO(sergey): Would be cool to support GCC/CLang as well.
		message(FATAL_ERROR "Currently only Visual Studio 2013 64bit is supported")
	endif()
	set(_lib_DIR "${CMAKE_SOURCE_DIR}/../lib/win64_vc12")
endif()

###########################################################################
# Tips for where to find some packages.
# Don't overwrite if passed via command line arguments.

_set_default(OPENIMAGEIO_ROOT_DIR "${_lib_DIR}/openimageio")
_set_default(BOOST_ROOT "${_lib_DIR}/boost")
_set_default(LLVM_ROOT_DIR "${_lib_DIR}/llvm")
_set_default(OSL_ROOT_DIR "${_lib_DIR}/osl")
_set_default(OPENEXR_ROOT_DIR "${_lib_DIR}/openexr")

# Dependencies for OpenImageIO.
set(PNG_LIBRARIES "${_lib_DIR}/png/lib/libpng${CMAKE_STATIC_LIBRARY_SUFFIX}")
set(JPEG_LIBRARIES "${_lib_DIR}/jpeg/lib/libjpeg${CMAKE_STATIC_LIBRARY_SUFFIX}")
# TODO(sergey): Move naming to a consistent state.
set(TIFF_LIBRARY "${_lib_DIR}/tiff/lib/libtiff${CMAKE_STATIC_LIBRARY_SUFFIX}")

if(APPLE)<commit_msg>[msvc] Add support for building with visual studio 2015(x86/x64) and 2013(x86)<commit_after>###########################################################################
# Helper macros
macro(_set_default variable value)
	if(NOT ${variable})
		set(${variable} ${value})
	endif()
endmacro()

###########################################################################
# Hardcoded libraries for platforms where we've got precompiled libraries.

###########################################################################
# Path to the folder with precompiled libarries.
# We demand libraries folders to be called exactly the same for all platforms.
if(APPLE)
	set(_lib_DIR "${CMAKE_SOURCE_DIR}/../lib/darwin-9.x.universal")
elseif(WIN32)
	if(CMAKE_CL_64)
		if(MSVC12)
			set(_lib_DIR "${CMAKE_SOURCE_DIR}/../lib/win64_vc12")
		elseif(MSVC14)
			set(_lib_DIR "${CMAKE_SOURCE_DIR}/../lib/win64_vc14")
		else()
			message(FATAL_ERROR "Unsupported Visual Studio Version")
		endif()
	else()
		if(MSVC12)
			set(_lib_DIR "${CMAKE_SOURCE_DIR}/../lib/windows_vc12")
		elseif(MSVC14)
			set(_lib_DIR "${CMAKE_SOURCE_DIR}/../lib/windows_vc14")
		else()
			message(FATAL_ERROR "Unsupported Visual Studio Version")
		endif()
	endif()
endif()

###########################################################################
# Tips for where to find some packages.
# Don't overwrite if passed via command line arguments.

_set_default(OPENIMAGEIO_ROOT_DIR "${_lib_DIR}/openimageio")
_set_default(BOOST_ROOT "${_lib_DIR}/boost")
_set_default(LLVM_ROOT_DIR "${_lib_DIR}/llvm")
_set_default(OSL_ROOT_DIR "${_lib_DIR}/osl")
_set_default(OPENEXR_ROOT_DIR "${_lib_DIR}/openexr")

# Dependencies for OpenImageIO.
set(PNG_LIBRARIES "${_lib_DIR}/png/lib/libpng${CMAKE_STATIC_LIBRARY_SUFFIX}")
set(JPEG_LIBRARIES "${_lib_DIR}/jpeg/lib/libjpeg${CMAKE_STATIC_LIBRARY_SUFFIX}")
# TODO(sergey): Move naming to a consistent state.
set(TIFF_LIBRARY "${_lib_DIR}/tiff/lib/libtiff${CMAKE_STATIC_LIBRARY_SUFFIX}")

if(APPLE)
{'fraction_non_alphanumeric': 0.2732494529540481, 'fraction_numerical': 0.015317286652078774, 'mean_word_length': 7.812048192771084, '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': '5809888', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1148, 'n_words': 240}