mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-01-01 03:12:23 +08:00
Make libcxx a default option when using clang
This commit is contained in:
parent
1f4900c363
commit
4674594ee7
@ -67,9 +67,15 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER MATCHES ".*clang")
|
if (CMAKE_CXX_COMPILER MATCHES ".*clang")
|
||||||
message(STATUS "Using clang's libcxx")
|
|
||||||
add_definitions(-stdlib=libc++)
|
option(USE_LIBCXX "Use clang's libcxx" TRUE)
|
||||||
set (EXTRA_LINKER_FLAGS -std=c++0x -stdlib=libc++)
|
|
||||||
|
if (USE_LIBCXX)
|
||||||
|
add_definitions(-stdlib=libc++)
|
||||||
|
set (EXTRA_LINKER_FLAGS -std=c++0x -stdlib=libc++)
|
||||||
|
else ()
|
||||||
|
set (EXTRA_LINKER_FLAGS -std=c++0x )
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
set (EXTRA_LINKER_FLAGS )
|
set (EXTRA_LINKER_FLAGS )
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user