ci: Fix clang linux failure

This commit is contained in:
kd-11 2024-09-08 14:50:36 +03:00 committed by kd-11
parent d19d0cb70d
commit 939479f55e

View File

@ -119,8 +119,8 @@ else()
endif()
endif()
# Specify C++ library to use as standard C++ when using clang
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# Specify C++ library to use as standard C++ when using clang (not required on linux due to GNU)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND (APPLE OR WIN32))
add_compile_options(-stdlib=libc++)
endif()
endif()