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()