From 8416e724c0021edaa768545799ef805003792c08 Mon Sep 17 00:00:00 2001 From: No One Date: Fri, 26 Feb 2021 14:39:23 +0800 Subject: [PATCH] build system: fix NOTFOUND git version error CMake would fail to find the git version of the IDF repo due to not being able to parse the whitespace in the git describe command --- tools/cmake/build.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/build.cmake b/tools/cmake/build.cmake index 563458a852..52631a1005 100644 --- a/tools/cmake/build.cmake +++ b/tools/cmake/build.cmake @@ -64,7 +64,7 @@ endfunction() # function(__build_get_idf_git_revision) 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") file(STRINGS "${idf_path}/version.txt" idf_ver_t) set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${idf_path}/version.txt")