Guarantee that IS_ARM_MAC is set in flow/CMakeLists.txt

Apparently it wasn't guaranteed before. Not sure how it fixed my local
build in the previous PR.
This commit is contained in:
Andrew Noyes 2022-09-27 14:32:12 -07:00
parent 772a9ab9fc
commit 23b4f5cf54
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)