mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
cmake: fix replacement pattern that finds sh-elf-objcopy
The previous one would fail if "gcc" was in the install path.
This commit is contained in:
parent
42bc49b89a
commit
d09ad9dd17
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ function(generate_g1a)
|
||||||
list(APPEND FXG1A_ARGS "-i" "${G1A_ICON}")
|
list(APPEND FXG1A_ARGS "-i" "${G1A_ICON}")
|
||||||
endif()
|
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(
|
add_custom_command(
|
||||||
TARGET "${G1A_TARGET}" POST_BUILD
|
TARGET "${G1A_TARGET}" POST_BUILD
|
||||||
|
|
Loading…
Reference in a new issue