Fixed typo in patches.bin rule and changed to add_custom_target to force running make

This commit is contained in:
Mr-Wiseguy 2024-05-17 09:54:58 -04:00
parent 2b0fcd0b77
commit 0a5f2f32d6

View File

@ -74,10 +74,10 @@ target_sources(PatchesLib PRIVATE
set_source_files_properties(${CMAKE_SOURCE_DIR}/RecompiledPatches/patches.c PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
# Build patches elf
add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/patches/patches.bin
add_custom_target(PatchesBin
COMMAND make
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/patches
BYPRODUCTS ${CMAKE_SOURCE_DIR}/patches/patches.bin}
BYPRODUCTS ${CMAKE_SOURCE_DIR}/patches/patches.bin
)
# Generate patches_bin.c from patches.bin