diff --git a/CMakeLists.txt b/CMakeLists.txt index 83c8ea4..ee23bf7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,3 @@ - # Libpdw: Primitives Done well! # Copyright (C) 2022 Rebekah Rowe # @@ -46,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 binary --output elf64-x86-64 --binary-architecture i386 ${filename} ${CMAKE_CURRENT_BINARY_DIR}/${filename}.o + ARGS --input-target binary --output elf64-x86-64 --binary-architecture i386 ${filename} ${CMAKE_CURRENT_BINARY_DIR}/${filename}.o DEPENDS ${file_in} POST_BUILD) set(FUNC_RET ${CMAKE_CURRENT_BINARY_DIR}/${filename}.o PARENT_SCOPE)