Don't build test_hw on apple silicon

This commit is contained in:
eachadea 2023-04-21 21:23:51 +06:00 committed by AT
parent 3e7cf346d6
commit 116f740fb5

View File

@ -84,7 +84,11 @@ target_link_libraries(chat
target_link_libraries(chat
PRIVATE llama)
add_executable(test_hw test_hw.cpp)
if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
if(NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
add_executable(test_hw test_hw.cpp)
endif()
endif()
set(COMPONENT_NAME_MAIN ${PROJECT_NAME})
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install)