Build: use libstdc++ with clang < 3.7
This commit is contained in:
parent
455ded454d
commit
44dab04d88
1 changed files with 2 additions and 2 deletions
|
@ -407,8 +407,8 @@ else()
|
||||||
set(USE_LTO false)
|
set(USE_LTO false)
|
||||||
# explicitly define stdlib for older versions of clang
|
# explicitly define stdlib for older versions of clang
|
||||||
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 3.7)
|
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 3.7)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libstdc++")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue