cmake: pass repository path to git when doing git describe

Fixes getting IDF version in out-of-tree builds
This commit is contained in:
Ivan Grokhotkov 2018-09-20 16:17:35 +08:00
parent 593abe0768
commit 59d590ff48

View file

@ -109,6 +109,8 @@ function(git_describe _var _repo_dir)
execute_process(COMMAND
"${GIT_EXECUTABLE}"
"-C"
${_repo_dir}
describe
${hash}
${ARGN}