Skip to content

Commit

Permalink
Merge pull request #653 from uyjulian/cmake_portability_echo
Browse files Browse the repository at this point in the history
fix: Use cmake built in commands for echo and cat
  • Loading branch information
uyjulian authored Aug 5, 2024
2 parents 0ab79de + f6a1d25 commit 39b57b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions samples/ps2dev_iop.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ 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
)
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
)
Expand Down

0 comments on commit 39b57b1

Please sign in to comment.