Browse Source

[sfml] Use x86_64 on macOS for SFML as they don't ship ARM binaries.

Mario Zechner 3 years ago
parent
commit
c31ea7c6fd
2 changed files with 4 additions and 2 deletions
  1. 4 0
      CMakeLists.txt
  2. 0 2
      spine-sfml/cpp/CMakeLists.txt

+ 4 - 0
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)

+ 0 - 2
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}")