Clear legacy flags

This commit is contained in:
Vitaly Cheptsov 2021-10-13 04:53:14 +03:00 committed by GitHub
parent c4f330664b
commit 3b0305a005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,10 +354,8 @@ if(NOT MSVC)
if(IOS)
elseif(APPLE AND NOT CMAKE_CROSSCOMPILING)
set(MACOSX_VERSION_MIN "10.8")
set(CMAKE_OSX_DEPLOYMENT_TARGET "${MACOSX_VERSION_MIN}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN} -stdlib=libc++ -U__STRICT_ANSI__")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -U__STRICT_ANSI__")
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
elseif(NOT ANDROID)
# TODO: See if we can get rid of no-psabi