Skip to content
Permalink
Browse files

git.cmake: let the environment override BUILD_VERSION

This is needed to remove noise when comparing binaries across git
commits and more generally for anyone who wants to manual
control/override the version number when building with or without a
.git/ subdirectory.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information...
marc-hb authored and nashif committed Mar 2, 2019
1 parent 0f7255c commit 39131dc3cee93e9e08e1f612bfa4fe5e1e81f303
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmake/git.cmake
@@ -4,7 +4,7 @@

# https://cmake.org/cmake/help/latest/module/FindGit.html
find_package(Git QUIET)
if(GIT_FOUND)
if(NOT BUILD_VERSION AND GIT_FOUND)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --abbrev=12
WORKING_DIRECTORY ${ZEPHYR_BASE}

0 comments on commit 39131dc

Please sign in to comment.
You can’t perform that action at this time.