mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
cmake: check for libc++ directly
Rather than trying to infer libc++ use from platform and compiler, just look for a defined symbol.
This commit is contained in:
@@ -3,10 +3,8 @@
|
||||
set(BOOST_USE_STATIC_LIBS OFF)
|
||||
set(BOOST_USE_MULTITHREADED OFF)
|
||||
set(BOOST_USE_STATIC_RUNTIME OFF)
|
||||
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
|
||||
if (HAVE_LIBCPP)
|
||||
# we need a more recent boost for libc++
|
||||
set(BOOST_MINVERSION 1.61.0)
|
||||
else ()
|
||||
set(BOOST_MINVERSION 1.57.0)
|
||||
|
Reference in New Issue
Block a user