[Tarantool-patches] [PATCH luajit 3/3] cmake: make Git optional in SetVersion()
Sergey Bronnikov
estetus at gmail.com
Mon Oct 26 16:25:25 MSK 2026
From: Sergey Bronnikov <segreyb at 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
More information about the Tarantool-patches
mailing list