File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.20)
6
6
project (bpfilter
7
7
VERSION 0.0.1
8
8
DESCRIPTION "BPF-based packet filtering framework"
9
- LANGUAGES C CXX
9
+ LANGUAGES C
10
10
)
11
11
12
12
include (GNUInstallDirs )
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0-only
2
2
# Copyright (c) 2023 Meta Platforms, Inc. and affiliates.
3
3
4
+ enable_language (CXX )
5
+
4
6
find_package (benchmark REQUIRED )
5
7
find_package (PkgConfig REQUIRED )
6
8
pkg_check_modules (bpf REQUIRED IMPORTED_TARGET libbpf )
@@ -11,14 +13,14 @@ add_executable(benchmark_bin
11
13
benchmark.cpp benchmark.hpp
12
14
)
13
15
14
- target_include_directories (benchmark_bin
16
+ target_compile_options (benchmark_bin
15
17
PRIVATE
16
- ${CMAKE_CURRENT_SOURCE_DIR}
18
+ -std=c++20
17
19
)
18
20
19
- target_compile_options (benchmark_bin
21
+ target_include_directories (benchmark_bin
20
22
PRIVATE
21
- -std=c++20
23
+ ${CMAKE_CURRENT_SOURCE_DIR}
22
24
)
23
25
24
26
target_link_libraries (benchmark_bin
You can’t perform that action at this time.
0 commit comments