This commit is contained in:
Eduardo Camacho Camacho 2020-08-14 23:06:22 -07:00
Родитель 8ff1b5ec28
Коммит d2208d579d
1 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -54,19 +54,19 @@ if(APPLE)
OUTPUT_STRIP_TRAILING_WHITESPACE)
message("-- CMAKE_OSX_SYSROOT ${CMAKE_OSX_SYSROOT}")
message("-- IOS_ARCH: ${IOS_ARCH}")
endif()
else()
if(${MAC_ARCH} STREQUAL "x86_64")
set(CMAKE_SYSTEM_PROCESSOR x86_64)
elseif(${MAC_ARCH} STREQUAL "arm64")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch arm64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch arm64")
set(CMAKE_SYSTEM_PROCESSOR arm64)
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64 -arch arm64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -arch arm64")
if(${MAC_ARCH} STREQUAL "x86_64")
set(CMAKE_SYSTEM_PROCESSOR x86_64)
elseif(${MAC_ARCH} STREQUAL "arm64")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch arm64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch arm64")
set(CMAKE_SYSTEM_PROCESSOR arm64)
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch x86_64 -arch arm64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -arch arm64")
endif()
message("-- MAC_ARCH: ${MAC_ARCH}")
endif()
message("-- MAC_ARCH: ${MAC_ARCH}")
endif()
message("-- CMAKE_SYSTEM_INFO_FILE: ${CMAKE_SYSTEM_INFO_FILE}")