Fix build on apple M1

This commit is contained in:
Xiaofeng Wang 2022-07-29 19:37:51 +08:00
parent bdd83cf61a
commit be3cc33800

View File

@ -183,6 +183,12 @@ elseif(WIN32)
endif() endif()
endif() endif()
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
include_directories(SYSTEM "/opt/homebrew/include")
endif()
endif()
# mediakit runtime # mediakit runtime
update_cached_list(MK_LINK_LIBRARIES "") update_cached_list(MK_LINK_LIBRARIES "")
update_cached_list(MK_COMPILE_DEFINITIONS ENABLE_VERSION) update_cached_list(MK_COMPILE_DEFINITIONS ENABLE_VERSION)