mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
Merge branch 'bugfix/git_describe_cmake' into 'master'
build system: fix NOTFOUND git version error See merge request espressif/esp-idf!12526
This commit is contained in:
@@ -64,7 +64,7 @@ endfunction()
|
|||||||
#
|
#
|
||||||
function(__build_get_idf_git_revision)
|
function(__build_get_idf_git_revision)
|
||||||
idf_build_get_property(idf_path IDF_PATH)
|
idf_build_get_property(idf_path IDF_PATH)
|
||||||
git_describe(idf_ver_git "${idf_path}" "--match v*.*")
|
git_describe(idf_ver_git "${idf_path}" "--match=v*.*")
|
||||||
if(EXISTS "${idf_path}/version.txt")
|
if(EXISTS "${idf_path}/version.txt")
|
||||||
file(STRINGS "${idf_path}/version.txt" idf_ver_t)
|
file(STRINGS "${idf_path}/version.txt" idf_ver_t)
|
||||||
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${idf_path}/version.txt")
|
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${idf_path}/version.txt")
|
||||||
|
Reference in New Issue
Block a user