Added config of Xcode templates according to CMAKE_OSX_ARCHITECTURES
This commit is contained in:
parent
ea0364d568
commit
6c802952fb
@ -144,6 +144,16 @@ if(SFML_OS_MACOSX)
|
||||
return()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# configure Xcode templates
|
||||
if(CMAKE_OSX_ARCHITECTURES)
|
||||
# maybe multiple arches are present in CMAKE_OSX_ARCHITECTURES
|
||||
# we simply need to replace ';' by ' ' (space) and store the result in XCODE_TEMPLATES_ARCH
|
||||
string(REPLACE ";" " " XCODE_TEMPLATES_ARCH "${CMAKE_OSX_ARCHITECTURES}")
|
||||
else()
|
||||
# no arch was provided to cmake, so we use the default one
|
||||
set(XCODE_TEMPLATES_ARCH "\$(NATIVE_ARCH_ACTUAL)")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(SFML_OS_LINUX OR SFML_OS_FREEBSD)
|
||||
|
@ -123,9 +123,9 @@ subject to the following restrictions:
|
||||
<key>SUPPORTED_PLATFORMS</key>
|
||||
<string>macosx</string>
|
||||
|
||||
<!-- ARCHITECTURES: only 64 bit -->
|
||||
<!-- ARCHITECTURES -->
|
||||
<key>ARCHS</key>
|
||||
<string>$(ARCHS_STANDARD_64_BIT)</string>
|
||||
<string>@XCODE_TEMPLATES_ARCH@</string>
|
||||
|
||||
<!-- DEPLOYMENT -->
|
||||
<key>MACOSX_DEPLOYMENT_TARGET</key>
|
||||
|
Loading…
Reference in New Issue
Block a user