From f6a1d25ec70e584982512751e1b6304a1745da61 Mon Sep 17 00:00:00 2001 From: Julian Uy Date: Mon, 5 Aug 2024 10:12:17 -0500 Subject: [PATCH] fix: Use cmake built in commands for echo and cat --- samples/ps2dev_iop.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/ps2dev_iop.cmake b/samples/ps2dev_iop.cmake index 19a31c508c5..4c039e77f81 100644 --- a/samples/ps2dev_iop.cmake +++ b/samples/ps2dev_iop.cmake @@ -58,8 +58,8 @@ SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE) FUNCTION(BUILD_IOP_IMPORTS out_f in_f) ADD_CUSTOM_COMMAND(OUTPUT ${out_f} - COMMAND echo "#include \"irx_imports.h\"" > ${out_f} - COMMAND cat ${in_f} >> ${out_f} + COMMAND ${CMAKE_COMMAND} -E echo \#include \"irx_imports.h\" > ${out_f} + COMMAND ${CMAKE_COMMAND} -E cat ${in_f} >> ${out_f} DEPENDS ${in_f} COMMENT "Creating ${out_f}" VERBATIM ) @@ -67,8 +67,8 @@ ENDFUNCTION() FUNCTION(BUILD_IOP_EXPORTS out_f in_f) ADD_CUSTOM_COMMAND(OUTPUT ${out_f} - COMMAND echo "#include \"irx.h\"" > ${out_f} - COMMAND cat ${in_f} >> ${out_f} + COMMAND ${CMAKE_COMMAND} -E echo \#include \"irx.h\" > ${out_f} + COMMAND ${CMAKE_COMMAND} -E cat ${in_f} >> ${out_f} DEPENDS ${in_f} COMMENT "Creating ${out_f}" VERBATIM )