This commit is contained in:
parent
08dc8630d6
commit
7ab0a3683c
@ -30,7 +30,7 @@ add_compile_options(
|
|||||||
$<$<COMPILE_LANGUAGE:ASM>:${ASM_FLAGS}>
|
$<$<COMPILE_LANGUAGE:ASM>:${ASM_FLAGS}>
|
||||||
)
|
)
|
||||||
|
|
||||||
set(STRIPPED_OBSW_NAME ${CMAKE_PROJECT_NAME}-stripped)
|
set(STRIPPED_OBSW_NAME ${OBSW_BIN_NAME}-stripped)
|
||||||
set(STRIPPED_WATCHDOG_NAME eive-watchdog-stripped)
|
set(STRIPPED_WATCHDOG_NAME eive-watchdog-stripped)
|
||||||
|
|
||||||
if(EIVE_CREATE_UNIQUE_OBSW_BIN)
|
if(EIVE_CREATE_UNIQUE_OBSW_BIN)
|
||||||
@ -45,12 +45,15 @@ add_custom_command(
|
|||||||
COMMENT "Generating stripped executable ${STRIPPED_OBSW_NAME}.."
|
COMMENT "Generating stripped executable ${STRIPPED_OBSW_NAME}.."
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_command(
|
if(UNIQUE_OBSW_BIN_NAME)
|
||||||
TARGET ${OBSW_NAME}
|
add_custom_command(
|
||||||
POST_BUILD
|
TARGET ${OBSW_NAME}
|
||||||
COMMAND ${CMAKE_COMMAND} copy
|
POST_BUILD
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/${OBSW_BIN_NAME}
|
COMMAND ${CMAKE_COMMAND} -E copy
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/${UNIQUE_OBSW_BIN_NAME})
|
${CMAKE_CURRENT_BINARY_DIR}/${OBSW_BIN_NAME}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/${UNIQUE_OBSW_BIN_NAME}
|
||||||
|
COMMENT "Generating unique EIVE OBSW binary ${UNIQUE_OBSW_BIN_NAME}")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${WATCHDOG_NAME}
|
TARGET ${WATCHDOG_NAME}
|
||||||
|
Loading…
Reference in New Issue
Block a user