0
0
Fork 0

fix(FM_DATE) single quote in the date string

This commit is contained in:
kerms 2024-06-26 15:12:40 +08:00
parent 9b031581d6
commit 4600f384dd
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ idf_component_register(
# Execute the Git command to get the formatted commit date
execute_process(
COMMAND git show -s --format=%cd --date=format:'%Y-%m-%d'
COMMAND git show -s --format=%cd --date=format:%Y-%m-%d
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE FM_DATE
RESULT_VARIABLE result
@ -22,5 +22,7 @@ if(NOT "${result}" STREQUAL "0")
message(WARNING "Git command failed with: ${git_error}")
endif()
message(STATUS FM_DATE:${FM_DATE})
target_compile_definitions(${COMPONENT_LIB} PRIVATE FW_UPD_DATE="${FM_DATE}")
idf_component_set_property(${COMPONENT_NAME} WHOLE_ARCHIVE ON)