Remove now obsolete bzr check
This commit is contained in:
parent
8590809c7a
commit
881ebe59c5
|
@ -22,20 +22,16 @@
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
#
|
#
|
||||||
|
|
||||||
# Automagically create version header file if the version string was not defined during
|
# Automagically create version header file if the version string was
|
||||||
# the build configuration. If CreateBzrVersionHeader or CreateGitVersionHeader cannot
|
# not defined during the build configuration. If
|
||||||
# determine the current repo version, a version.h file is still created with
|
# CreateGitVersionHeader cannot determine the current repo version, a
|
||||||
# KICAD_BUILD_VERSION set to "no-vcs-found".
|
# version.h file is still created with KICAD_BUILD_VERSION set to
|
||||||
|
# "no-vcs-found".
|
||||||
if( NOT KICAD_BUILD_VERSION )
|
if( NOT KICAD_BUILD_VERSION )
|
||||||
set( _wvh_version_str "no-vcs-found" )
|
set( _wvh_version_str "no-vcs-found" )
|
||||||
|
|
||||||
# Detect the appropiate VCS and set the version string.
|
# Attempt to detect if we have a git repo and set the version string.
|
||||||
if( EXISTS "${SRC_PATH}/.bzr" )
|
if( EXISTS "${SRC_PATH}/.git" )
|
||||||
message( STATUS "Using Bazaar to determine build version string." )
|
|
||||||
include( ${CMAKE_MODULE_PATH}/CreateBzrVersionHeader.cmake )
|
|
||||||
create_bzr_version_header( ${SRC_PATH} )
|
|
||||||
set( _wvh_version_str ${KICAD_BUILD_VERSION} )
|
|
||||||
elseif( EXISTS "${SRC_PATH}/.git" )
|
|
||||||
message( STATUS "Using Git to determine build version string." )
|
message( STATUS "Using Git to determine build version string." )
|
||||||
include( ${CMAKE_MODULE_PATH}/CreateGitVersionHeader.cmake )
|
include( ${CMAKE_MODULE_PATH}/CreateGitVersionHeader.cmake )
|
||||||
create_git_version_header( ${SRC_PATH} )
|
create_git_version_header( ${SRC_PATH} )
|
||||||
|
|
Loading…
Reference in New Issue