cmake: pass repository path to git when doing git describe
Fixes getting IDF version in out-of-tree builds
This commit is contained in:
parent
593abe0768
commit
59d590ff48
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ function(git_describe _var _repo_dir)
|
||||||
|
|
||||||
execute_process(COMMAND
|
execute_process(COMMAND
|
||||||
"${GIT_EXECUTABLE}"
|
"${GIT_EXECUTABLE}"
|
||||||
|
"-C"
|
||||||
|
${_repo_dir}
|
||||||
describe
|
describe
|
||||||
${hash}
|
${hash}
|
||||||
${ARGN}
|
${ARGN}
|
||||||
|
|
Loading…
Reference in a new issue