mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Stop manipulating standard library flags for macOS builds
This commit is contained in:
parent
52de41294e
commit
3f6403e279
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user