File tree 2 files changed +12
-2
lines changed 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 4
4
cmake_minimum_required (VERSION 3.20)
5
5
6
6
project (bpfilter
7
- VERSION 0.0.1
7
+ VERSION 0.1.0
8
8
DESCRIPTION "BPF-based packet filtering framework"
9
9
LANGUAGES C
10
10
)
11
11
12
+ set (PROJECT_VERSION_TWEAK "-devel" )
13
+
14
+ message (NOTICE "bpfilter version ${CMAKE_PROJECT_VERSION}${PROJECT_VERSION_TWEAK} " )
15
+
12
16
include (GNUInstallDirs)
13
17
14
18
option (NO_DOCS "Disable documentation generation" 0)
@@ -52,6 +56,12 @@ target_link_options(bf_global_flags
52
56
$<$<CONFIG:debug>:-fsanitize=address -fsanitize=undefined>
53
57
)
54
58
59
+ configure_file (
60
+ ${CMAKE_SOURCE_DIR} /src/version .h.in
61
+ ${CMAKE_BINARY_DIR} /include /version .h
62
+ @ONLY
63
+ )
64
+
55
65
add_subdirectory (src/core)
56
66
add_subdirectory (src/bpfilter)
57
67
add_subdirectory (src/libbpfilter)
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
5
5
Name: bpfilter
6
6
Description: BPF-based packet filtering framework
7
7
URL: https://github.com/facebook/bpfilter
8
- Version: @PROJECT_VERSION@
8
+ Version: @PROJECT_VERSION@@PROJECT_VERSION_TWEAK@
9
9
Cflags: -I${includedir}
10
10
Libs: -L${libdir} -lbpfilter
You can’t perform that action at this time.
0 commit comments