From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: tarantool-patches@dev.tarantool.org,
Sergey Kaplun <skaplun@tarantool.org>,
e.temirgaleev@tarantool.org
Cc: Sergey Bronnikov <segreyb@tarantool.org>
Subject: [Tarantool-patches] [PATCH luajit 3/3] cmake: make Git optional in SetVersion()
Date: Mon, 26 Oct 2026 16:25:25 +0300 [thread overview]
Message-ID: <c51de22eeeab0604730112fc06942faa113bfbc7.1793019660.git.estetus@gmail.com> (raw)
In-Reply-To: <cover.1793019660.git.estetus@gmail.com>
From: Sergey Bronnikov <segreyb@tarantool.org>
SetVersion.cmake requires the Git package even when there is no
.git (as in the release tarball); make the lookup optional to
avoid a build dependency on Git.
Needed for the OpenBSD port.
---
cmake/SetVersion.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/SetVersion.cmake b/cmake/SetVersion.cmake
index e169b211..1cfabc2c 100644
--- a/cmake/SetVersion.cmake
+++ b/cmake/SetVersion.cmake
@@ -4,7 +4,7 @@
# Copyright (C) 2015-2020 IPONWEB Ltd.
function(SetVersion version majver minver patchver tweakver prerel)
- find_package(Git QUIET REQUIRED)
+ find_package(Git QUIET)
if(EXISTS ${CMAKE_SOURCE_DIR}/.git AND Git_FOUND)
# Read version from the project's VCS and store the result
# into version.
--
2.56.0
next prev parent reply other threads:[~2026-10-26 13:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-26 13:24 [Tarantool-patches] [PATCH luajit 0/3] OpenBSD support in a build system Sergey Bronnikov via Tarantool-patches
2026-10-26 13:24 ` [Tarantool-patches] [PATCH luajit 1/3] cmake: omit -ldl for OpenBSD in SetTargetFlags() Sergey Bronnikov via Tarantool-patches
2026-10-26 13:25 ` [Tarantool-patches] [PATCH luajit 2/3] cmake: allow using CMake build system in OpenBSD Sergey Bronnikov via Tarantool-patches
2026-10-26 13:25 ` Sergey Bronnikov via Tarantool-patches [this message]
2026-10-29 14:58 ` [Tarantool-patches] [PATCH luajit 0/3] OpenBSD support in a build system Sergey Kaplun via Tarantool-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c51de22eeeab0604730112fc06942faa113bfbc7.1793019660.git.estetus@gmail.com \
--to=tarantool-patches@dev.tarantool.org \
--cc=e.temirgaleev@tarantool.org \
--cc=estetus@gmail.com \
--cc=segreyb@tarantool.org \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit 3/3] cmake: make Git optional in SetVersion()' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox