From 429bde6648cd6b8c9009d51fe234d7b85c9e9529 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 | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 77a7d11e..65f6977a 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -20,13 +20,8 @@ function(sfml_set_stdlib target) endif() endif() - if (SFML_OS_MACOSX) - if (${CMAKE_GENERATOR} MATCHES "Xcode") - sfml_set_xcode_property(${target} CLANG_CXX_LIBRARY "libc++") - else() - target_compile_options(${target} PRIVATE "-stdlib=libc++") - target_link_libraries(${target} PRIVATE "-stdlib=libc++") - endif() + if(${CMAKE_GENERATOR} MATCHES "Xcode") + sfml_set_xcode_property(${target} CLANG_CXX_LIBRARY "libc++") endif() endfunction()