We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3335ebc commit c1e8462Copy full SHA for c1e8462
CMakeLists.txt
@@ -1,7 +1,11 @@
1
cmake_minimum_required(VERSION 3.25)
2
3
+# Get version string from Make.inc
4
+file(READ "${CMAKE_CURRENT_LIST_DIR}/Make.inc" MAKE_FILE)
5
+string(REGEX MATCH "VERSION = ([0-9\.]+)" _ ${MAKE_FILE})
6
+
7
project(openlibm
- VERSION 0.8.4
8
+ VERSION ${CMAKE_MATCH_1}
9
LANGUAGES C ASM)
10
11
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
0 commit comments