CI: always use libc++ with clang

This commit is contained in:
Benoit Blanchon
2023-11-06 13:24:32 +01:00
parent 4774ca3d29
commit f7dcea562f
2 changed files with 11 additions and 4 deletions

View File

@ -64,6 +64,9 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options(-stdlib=libc++)
link_libraries(c++ m)
if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.0) AND(NOT ${COVERAGE}))
add_compile_options(-g -Og)
else()