Complain about missing Yasm at configure time at of build time

This commit is contained in:
Robert Schulze 2023-02-08 13:17:42 +00:00
parent 99274f1db1
commit f97880840a
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -105,6 +105,9 @@ set(SRCS
if (ARCH_AMD64)
find_program(YASM_PATH NAMES yasm)
if (NOT YASM_PATH)
message(FATAL_ERROR "Please install the Yasm assembler")
endif ()
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/crc_iscsi_v_pcl.o
COMMAND ${YASM_PATH} -f x64 -f elf64 -X gnu -g dwarf2 -D LINUX -o ${CMAKE_CURRENT_BINARY_DIR}/crc_iscsi_v_pcl.o ${HDFS3_SOURCE_DIR}/common/crc_iscsi_v_pcl.asm