mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
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:
parent
1c9f38e98d
commit
e23316f453
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user