diff --git a/CMakeLists.txt b/CMakeLists.txt index e0d7cfdd..526f3b46 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,11 @@ cmake_minimum_required(VERSION 3.25) +# Get version string from Make.inc +file(READ "${CMAKE_CURRENT_LIST_DIR}/Make.inc" MAKE_FILE) +string(REGEX MATCH "VERSION = ([0-9\.]+)" _ ${MAKE_FILE}) + project(openlibm - VERSION 0.8.4 + VERSION ${CMAKE_MATCH_1} LANGUAGES C ASM) option(BUILD_SHARED_LIBS "Build using shared libraries" ON)