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.
This commit is contained in:
parent
f5a3442ba6
commit
fc0bd0bfc8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user