]> granicus.if.org Git - esp-idf/commitdiff
cmake: pass repository path to git when doing git describe
authorIvan Grokhotkov <ivan@espressif.com>
Thu, 20 Sep 2018 08:17:35 +0000 (16:17 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 20 Sep 2018 08:18:25 +0000 (16:18 +0800)
Fixes getting IDF version in out-of-tree builds

tools/cmake/third_party/GetGitRevisionDescription.cmake

index 6c711bbd49b60225680a01304d955297559d2053..70aaedd7062495832cf0040d5729baa8de5cbec2 100644 (file)
@@ -109,6 +109,8 @@ function(git_describe _var _repo_dir)
 
        execute_process(COMMAND
                "${GIT_EXECUTABLE}"
+               "-C"
+               ${_repo_dir}
                describe
                ${hash}
                ${ARGN}