Modernize iOS toolchain: remove BUILD_ARM64, drop support for Xcode <4.3 and don't pretend defining official CMake variables
This commit is contained in:
parent
93ad872f9e
commit
ff011dc51d
3 changed files with 41 additions and 65 deletions
|
@ -1,5 +1,10 @@
|
|||
include(CMakeParseArguments)
|
||||
|
||||
# This little macro lets you set any Xcode specific property
|
||||
macro (sfml_set_xcode_property TARGET XCODE_PROPERTY XCODE_VALUE)
|
||||
set_property (TARGET ${TARGET} PROPERTY XCODE_ATTRIBUTE_${XCODE_PROPERTY} ${XCODE_VALUE})
|
||||
endmacro ()
|
||||
|
||||
# set the appropriate standard library on each platform for the given target
|
||||
# example: sfml_set_stdlib(sfml-system)
|
||||
function(sfml_set_stdlib target)
|
||||
|
@ -14,7 +19,7 @@ function(sfml_set_stdlib target)
|
|||
|
||||
if (SFML_OS_MACOSX)
|
||||
if (${CMAKE_GENERATOR} MATCHES "Xcode")
|
||||
set_property(TARGET ${target} PROPERTY XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
|
||||
sfml_set_xcode_property(${target} CLANG_CXX_LIBRARY "libc++")
|
||||
else()
|
||||
target_compile_options(${target} PRIVATE "-stdlib=libc++")
|
||||
target_link_libraries(${target} PRIVATE "-stdlib=libc++")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue