diff --git a/CMakeLists.txt b/CMakeLists.txt index 304223bf..779b0f06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ set(OPENRTX_ROOT ${CMAKE_CURRENT_LIST_DIR}) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(openrtx) -execute_process(COMMAND git describe --tags --dirty +execute_process(COMMAND git describe --tags --dirty --always OUTPUT_VARIABLE GIT_VER_ID ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) diff --git a/meson.build b/meson.build index 20ddeb57..455e0115 100644 --- a/meson.build +++ b/meson.build @@ -138,7 +138,7 @@ subdir('lib/miosix-kernel') ## ## Current git commit or tag ## -r = run_command('git', 'describe', '--tags', '--dirty') +r = run_command('git', 'describe', '--tags', '--dirty', '--always') if r.returncode() != 0 # it failed endif