Stop manipulating standard library flags for macOS builds

This commit is contained in:
Chris Thrasher 2023-09-25 21:14:26 -06:00
parent 52de41294e
commit 3f6403e279
2 changed files with 4 additions and 8 deletions

View File

@ -202,6 +202,10 @@ if(SFML_OS_MACOS)
# configure Xcode templates
set(XCODE_TEMPLATES_ARCH "\$(NATIVE_ARCH_ACTUAL)")
if(NOT SFML_COMPILER_CLANG)
message(FATAL_ERROR "Clang is the only supported compiler on macOS")
endif()
endif()
# set the output directory for SFML DLLs and executables

View File

@ -27,14 +27,6 @@ function(sfml_set_stdlib target)
target_link_libraries(${target} PRIVATE "-shared-libgcc" "-shared-libstdc++")
endif()
endif()
if(SFML_OS_MACOS)
if(${CMAKE_GENERATOR} MATCHES "Xcode")
sfml_set_xcode_property(${target} CLANG_CXX_LIBRARY "libc++")
elseif(NOT SFML_COMPILER_CLANG)
message(FATAL_ERROR "Clang is the only supported compiler on macOS")
endif()
endif()
endfunction()
function(sfml_set_common_ios_properties target)