Build: use libstdc++ with clang < 3.7

This commit is contained in:
anonimal 2016-08-16 12:04:05 +00:00
parent 455ded454d
commit 44dab04d88
No known key found for this signature in database
GPG Key ID: 66A76ECF914409F1
1 changed files with 2 additions and 2 deletions

View File

@ -407,8 +407,8 @@ else()
set(USE_LTO false)
# explicitly define stdlib for older versions of clang
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 3.7)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libstdc++")
endif()
endif()