From f5700aa6669476fbeec55052008c0f650ee9cfe6 Mon Sep 17 00:00:00 2001 From: Rebekah Date: Thu, 20 Jun 2024 08:36:36 -0400 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10fbef3..6cf982f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ function(CommandConvertToObjcopy file_in) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${filename}.o WORKING_DIRECTORY ${filepath} COMMAND ${CMAKE_OBJCOPY} - ARGS --input-target binary --output-target elf64-x86-64 --binary-architecture i386 ${filename} ${CMAKE_CURRENT_BINARY_DIR}/${filename}.o + ARGS --input-target binary --output-target elf64-${CMAKE_SYSTEM_PROCESSOR} --binary-architecture ${CMAKE_SYSTEM_PROCESSOR} ${filename} ${CMAKE_CURRENT_BINARY_DIR}/${filename}.o DEPENDS ${file_in} POST_BUILD) set(FUNC_RET ${CMAKE_CURRENT_BINARY_DIR}/${filename}.o PARENT_SCOPE)