# #BOOST libraries # if (WIN32) #For Visual Studio 2013 if (CMAKE_BUILD_TYPE STREQUAL Debug) set (BOOST_DEBUG_OR_RELEASE "debug") else (CMAKE_BUILD_TYPE STREQUAL Debug) set (BOOST_DEBUG_OR_RELEASE "release") endif (CMAKE_BUILD_TYPE STREQUAL Debug) ExternalProject_Add ( boost PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 #When running configure, the source directory must be the current directory URL http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.gz URL_MD5 25f9a8ac28beeb5ab84aa98510305299 UPDATE_COMMAND "" PATCH_COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_LIST_DIR}/patch . CONFIGURE_COMMAND ./bootstrap BUILD_COMMAND ./b2 toolset=msvc-12.0 link=static threading=multi variant=${BOOST_DEBUG_OR_RELEASE} INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory /boost /include/boost COMMAND ${CMAKE_COMMAND} -E copy_directory /stage/lib /lib ) endif (WIN32)