Fix build error
This commit is contained in:
Родитель
8ff1b5ec28
Коммит
d2208d579d
|
@ -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}")
|
||||
|
|
Загрузка…
Ссылка в новой задаче