Boost 1.61 required for clang/libc++

The libc++ headers aren't specific enough and causes the compiler to think
there are ambiguous functions when using older Boost versions.
This commit is contained in:
Matthew Barr 2017-01-13 10:23:00 +11:00
parent 1c9f38e98d
commit e23316f453

View File

@ -62,7 +62,14 @@ include_directories(SYSTEM include)
set(BOOST_USE_STATIC_LIBS OFF)
set(BOOST_USE_MULTITHREADED OFF)
set(BOOST_USE_STATIC_RUNTIME OFF)
set(BOOST_MINVERSION 1.57.0)
if (CMAKE_SYSTEM_NAME MATCHES "Darwin"
OR (CMAKE_SYSTEM_NAME MATCHES "FreeBSD"
AND CMAKE_C_COMPILER_ID MATCHES "Clang"))
# we need a more recent boost for libc++ used by clang on OSX and FreeBSD
set(BOOST_MINVERSION 1.61.0)
else ()
set(BOOST_MINVERSION 1.57.0)
endif ()
set(BOOST_NO_BOOST_CMAKE ON)
# first check for Boost installed on the system