Use boost::chrono instead of std::chrono

This commit is contained in:
Eduardo Bart
2013-01-23 19:31:14 -02:00
parent d5d5e507af
commit 50c2db100e
3 changed files with 72 additions and 47 deletions

View File

@@ -173,11 +173,10 @@ message(STATUS "Build revision: ${BUILD_REVISION}")
add_definitions(-D"BUILD_REVISION=\\\"${BUILD_REVISION}\\\"")
# find boost
set(REQUIRED_BOOST_COMPONENTS locale system filesystem regex thread)
set(REQUIRED_BOOST_COMPONENTS locale system filesystem regex thread chrono)
if(WIN32)
set(Boost_THREADAPI win32)
set(framework_DEFINITIONS ${framework_DEFINITIONS} -DBOOST_THREAD_USE_LIB) # fix boost thread linkage
set(REQUIRED_BOOST_COMPONENTS ${REQUIRED_BOOST_COMPONENTS} chrono) # mingw32 does not have std::thread
endif()
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_LIBS ${USE_STATIC_LIBS})