From fc0bd0bfc830262534af3b603d6e8fd7e8155b5f Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Thu, 14 Jul 2022 21:56:34 -0600 Subject: [PATCH] Don't specify standard library on macOS libc++ is already the default and GCC can't even be used so there's no circumstance where we'd need to explicitly tell Clang to use libc++. I confirmed that even with this removed, libc++ headers are still being used and found. --- cmake/Macros.cmake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 36aa89ee8..5a9c93924 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -31,10 +31,7 @@ function(sfml_set_stdlib target) if(SFML_OS_MACOSX) if(${CMAKE_GENERATOR} MATCHES "Xcode") sfml_set_xcode_property(${target} CLANG_CXX_LIBRARY "libc++") - elseif(SFML_COMPILER_CLANG) - target_compile_options(${target} PRIVATE "-stdlib=libc++") - target_link_libraries(${target} PRIVATE "-stdlib=libc++") - else() + elseif(NOT SFML_COMPILER_CLANG) message(FATAL_ERROR "Clang is the only supported compiler on macOS") endif() endif()