From d09ad9dd17f31a7d9519d0aba035b4a7e7e5e07e Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 17 Apr 2021 15:59:35 +0200 Subject: [PATCH] cmake: fix replacement pattern that finds sh-elf-objcopy The previous one would fail if "gcc" was in the install path. --- fxsdk/cmake/GenerateG1A.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fxsdk/cmake/GenerateG1A.cmake b/fxsdk/cmake/GenerateG1A.cmake index a2f3451..01e743e 100644 --- a/fxsdk/cmake/GenerateG1A.cmake +++ b/fxsdk/cmake/GenerateG1A.cmake @@ -35,7 +35,7 @@ function(generate_g1a) list(APPEND FXG1A_ARGS "-i" "${G1A_ICON}") endif() - string(REPLACE "gcc" "objcopy" OBJCOPY "${CMAKE_C_COMPILER}") + string(REGEX REPLACE "sh-elf-gcc$" "sh-elf-objcopy" OBJCOPY "${CMAKE_C_COMPILER}") add_custom_command( TARGET "${G1A_TARGET}" POST_BUILD