We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a74a1da + c40bf39 commit 2baf233Copy full SHA for 2baf233
4 files changed
CMakeLists.txt
@@ -1,7 +1,8 @@
1
cmake_minimum_required (VERSION 3.19)
2
3
-# Declare here
4
-set (AVCPP_VERSION 3.0.1)
+# Declare the version version.txt
+file(READ "VERSION.txt" AVCPP_VERSION)
5
+string(STRIP "${AVCPP_VERSION}" AVCPP_VERSION)
6
7
if(NOT DEFINED PROJECT_NAME)
8
set(AVCPP_NOT_SUBPROJECT ON)
VERSION.txt
@@ -0,0 +1 @@
+3.0.2
meson.build
@@ -6,7 +6,7 @@ project(
'c_std=c11',
'cpp_std=c++20'
],
9
- version: '2.4.0',
+ version: files('VERSION.txt'),
10
)
11
12
subdir('src/avcpp')
src/avcpp/meson.build
@@ -7,7 +7,7 @@ if meson.project_name() == ''
endif
13
0 commit comments