Try and silence the ci failure on windows

This commit is contained in:
Mark Roszko 2022-01-23 19:23:43 +00:00
parent f12d0cb0e2
commit 34dafdd2c1
1 changed files with 11 additions and 0 deletions

View File

@ -58,7 +58,18 @@ macro( create_git_version_header _git_src_path )
# to KiCadVersion.cmake as the revision level. # to KiCadVersion.cmake as the revision level.
if( _git_DESCRIBE ) if( _git_DESCRIBE )
set( KICAD_VERSION "(${_git_DESCRIBE})" ) set( KICAD_VERSION "(${_git_DESCRIBE})" )
endif()
if( _git_REV_COUNT )
set( KICAD_GIT_REV "${_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() endif()
endmacro() endmacro()