Added config of Xcode templates according to CMAKE_OSX_ARCHITECTURES
This commit is contained in:
parent
ea0364d568
commit
6c802952fb
2 changed files with 12 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue