From 939479f55ee5be3e446f8b51d51efe2d68afdb53 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 8 Sep 2024 14:50:36 +0300 Subject: [PATCH] ci: Fix clang linux failure --- buildfiles/cmake/ConfigureCompiler.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildfiles/cmake/ConfigureCompiler.cmake b/buildfiles/cmake/ConfigureCompiler.cmake index 8a32b5ce5b..0f76944556 100644 --- a/buildfiles/cmake/ConfigureCompiler.cmake +++ b/buildfiles/cmake/ConfigureCompiler.cmake @@ -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()