set env in cross platform safe way

This commit is contained in:
dcvz 2024-06-03 17:36:52 +02:00
parent ccfd684574
commit 1d62e2c287
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ if(NOT DEFINED PATCHES_OBJCOPY)
endif()
add_custom_target(PatchesBin
COMMAND CC=${PATCHES_C_COMPILER} LD=${PATCHES_LD} OBJCOPY=${PATCHES_OBJCOPY} make
COMMAND ${CMAKE_COMMAND} -E env CC=${PATCHES_C_COMPILER} LD=${PATCHES_LD} OBJCOPY=${PATCHES_OBJCOPY} make
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/patches
BYPRODUCTS ${CMAKE_SOURCE_DIR}/patches/patches.bin
)