head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC7:1.1.1.2 netbsd-11-0-RC6:1.1.1.2 netbsd-11-0-RC5:1.1.1.2 netbsd-11-0-RC4:1.1.1.2 netbsd-11-0-RC3:1.1.1.2 netbsd-11-0-RC2:1.1.1.2 netbsd-11-0-RC1:1.1.1.2 netbsd-11:1.1.1.2.0.2 netbsd-11-base:1.1.1.2 netbsd-10-1-RELEASE:1.1.1.1 netbsd-10-0-RELEASE:1.1.1.1 netbsd-10-0-RC6:1.1.1.1 netbsd-10-0-RC5:1.1.1.1 netbsd-10-0-RC4:1.1.1.1 netbsd-10-0-RC3:1.1.1.1 netbsd-10-0-RC2:1.1.1.1 netbsd-10-0-RC1:1.1.1.1 ctwm-4-1-0:1.1.1.2 netbsd-10:1.1.1.1.0.2 netbsd-10-base:1.1.1.1 ctwm-4-0-3:1.1.1.1 CTWM:1.1.1; locks; strict; comment @# @; 1.1 date 2021.04.11.08.36.54; author nia; state Exp; branches 1.1.1.1; next ; commitid PjWN65car4ihSQOC; 1.1.1.1 date 2021.04.11.08.36.54; author nia; state Exp; branches; next 1.1.1.2; commitid PjWN65car4ihSQOC; 1.1.1.2 date 2023.07.05.07.36.07; author nia; state Exp; branches; next ; commitid W6xbaV6G6L8elAvE; desc @@ 1.1 log @Initial revision @ text @# # See what sort of version control bits we might have around. # # See if we're building from a bzr checkout. This is fragile in the # sense that it'll break if the bzr WT format changes, but that's # staggeringly unlikely now, so... set(BZR_DIRSTATE_FILE ${CMAKE_SOURCE_DIR}/.bzr/checkout/dirstate) if(EXISTS ${BZR_DIRSTATE_FILE}) set(IS_BZR_CO 1) else() set(IS_BZR_CO 0) endif() # If we are, see if we can find bzr(1) installed set(HAS_BZR 0) if(IS_BZR_CO) find_program(BZR_CMD bzr) if(BZR_CMD) set(HAS_BZR 1) message(STATUS "Building from a checkout and found bzr.") else() message(STATUS "Building from a checkout, but no bzr found.") endif(BZR_CMD) else() message(STATUS "You aren't building from a bzr checkout.") endif(IS_BZR_CO) # If not bzr, do a little check to see if we're building from git instead if(NOT IS_BZR_CO) set(GIT_INDEX_FILE ${CMAKE_SOURCE_DIR}/.git/index) set(IS_GIT_CO 0) if(EXISTS ${GIT_INDEX_FILE}) set(IS_GIT_CO 1) endif() if(IS_GIT_CO) set(HAS_GIT 0) find_program(GIT_CMD git) if(GIT_CMD) set(HAS_GIT 1) message(STATUS "Building from git repo and found git.") else() message(STATUS "Building from git repo, but no git found.") endif(GIT_CMD) endif(IS_GIT_CO) endif(NOT IS_BZR_CO) # Flag for dev use set(VCS_CHECKS_RUN 1) @ 1.1.1.1 log @ctwm-4.0.3 @ text @@ 1.1.1.2 log @ctwm-4.1.0 @ text @d20 1 a20 1 find_program(BZR_CMD NAMES bzr brz) d23 1 a23 1 message(STATUS "Building from a checkout and found bzr (${BZR_CMD}).") d45 1 a45 1 message(STATUS "Building from git repo and found git (${GIT_CMD}).") @