Merge pull request #8346 from sfc-gh-anoyes/anoyes/followup-to-8338

Guarantee that IS_ARM_MAC is set in flow/CMakeLists.txt
This commit is contained in:
Jingyu Zhou 2022-10-03 09:34:45 -07:00 committed by GitHub
commit 9795347aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ target_link_libraries(flowlinktest PRIVATE flow stacktrace)
# message(STATUS "ZLIB package not found")
#endif()
set(IS_ARM_MAC NO)
if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
set(IS_ARM_MAC YES)
endif()
# TODO: Limit ZSTD availability to CLANG, for gcc resolve library link ordering
if (CLANG AND NOT IS_ARM_MAC)
include(CompileZstd)