diff --git a/CMakeLists.txt b/CMakeLists.txt index f77ff7f4c..7617a9239 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,10 @@ else() endif() 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-sfml/c) add_subdirectory(spine-cpp) diff --git a/spine-sfml/cpp/CMakeLists.txt b/spine-sfml/cpp/CMakeLists.txt index 777a9ad4d..903d0f7d4 100644 --- a/spine-sfml/cpp/CMakeLists.txt +++ b/spine-sfml/cpp/CMakeLists.txt @@ -3,8 +3,6 @@ # set(DEPS_DIR "${CMAKE_CURRENT_LIST_DIR}/dependencies/") 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_DIR ${DEPS_DIR}/SFML-2.5.1-macos-clang) if (NOT EXISTS "${SFML_DIR}")