From 186ffdaf49544b7f2b2461bb79cb80aacacb270f Mon Sep 17 00:00:00 2001 From: Fredrik Johansson Date: Wed, 25 Oct 2023 12:52:33 +0200 Subject: [PATCH] cmake fix take 2 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a36269d3f1..82b6d4f1e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,9 +22,11 @@ include(TestBigEndian) # Source of truth for project version file(STRINGS VERSION FLINT_VERSION_FULL) +string(REGEX MATCH "([0-9]+\.[0-9]+\.[0-9]+)" _ ${FLINT_VERSION_FULL}) +set(FLINT_VERSION ${CMAKE_MATCH_1}) project(flint - VERSION ${FLINT_VERSION_FULL} + VERSION ${FLINT_VERSION} DESCRIPTION "Fast Library for Number Theory" HOMEPAGE_URL https://flintlib.org/ LANGUAGES C CXX)