Try and silence the ci failure on windows

This commit is contained in:
Marek Roszko 2022-01-23 14:16:02 -05:00
parent e5d5ee07f0
commit 1689ee5954
2 changed files with 13 additions and 2 deletions

View File

@ -58,7 +58,18 @@ macro( create_git_version_header _git_src_path )
# to KiCadVersion.cmake as the revision level.
if( _git_DESCRIBE )
set( KICAD_VERSION "(${_git_DESCRIBE})" )
endif()
if( _git_REV_COUNT )
set( KICAD_GIT_REV "${_git_REV_COUNT}" )
# Sanity check
if (NOT KICAD_GIT_REV MATCHES "^[0-9]+$")
set( KICAD_GIT_REV "0" )
endif ()
else()
# Incase the command failed, we can just default to 0, only a problem in CI right now
set( KICAD_GIT_REV "0" )
endif()
endmacro()