mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[sfml] Use x86_64 on macOS for SFML as they don't ship ARM binaries.
This commit is contained in:
parent
110e11d540
commit
c31ea7c6fd
@ -21,6 +21,10 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if((${SPINE_SFML}) OR (${CMAKE_CURRENT_BINARY_DIR} MATCHES "spine-sfml"))
|
if((${SPINE_SFML}) OR (${CMAKE_CURRENT_BINARY_DIR} MATCHES "spine-sfml"))
|
||||||
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
set(CMAKE_OSX_ARCHITECTURES x86_64)
|
||||||
|
set(ONLY_ACTIVE_ARCH NO)
|
||||||
|
endif()
|
||||||
add_subdirectory(spine-c)
|
add_subdirectory(spine-c)
|
||||||
add_subdirectory(spine-sfml/c)
|
add_subdirectory(spine-sfml/c)
|
||||||
add_subdirectory(spine-cpp)
|
add_subdirectory(spine-cpp)
|
||||||
|
|||||||
@ -3,8 +3,6 @@
|
|||||||
#
|
#
|
||||||
set(DEPS_DIR "${CMAKE_CURRENT_LIST_DIR}/dependencies/")
|
set(DEPS_DIR "${CMAKE_CURRENT_LIST_DIR}/dependencies/")
|
||||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
set(CMAKE_OSX_ARCHITECTURES x86_64)
|
|
||||||
set(ONLY_ACTIVE_ARCH NO)
|
|
||||||
set(SFML_URL "https://www.sfml-dev.org/files/SFML-2.5.1-macOS-clang.tar.gz")
|
set(SFML_URL "https://www.sfml-dev.org/files/SFML-2.5.1-macOS-clang.tar.gz")
|
||||||
set(SFML_DIR ${DEPS_DIR}/SFML-2.5.1-macos-clang)
|
set(SFML_DIR ${DEPS_DIR}/SFML-2.5.1-macos-clang)
|
||||||
if (NOT EXISTS "${SFML_DIR}")
|
if (NOT EXISTS "${SFML_DIR}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user