From 6ce1e930e87938d9350da5ed7652cf64fbc82e6d Mon Sep 17 00:00:00 2001 From: Tom Jones Date: Tue, 30 Jan 2024 09:07:06 +0000 Subject: vnet: Only build tap on Linux tap requires some porting on FreeBSD, while we wait for those changes only build tap on Linux. Type: improvement Change-Id: I4361bf43764fdb046c2138d4a2ee5d7efa31bd5a Signed-off-by: Tom Jones --- src/vnet/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet') diff --git a/src/vnet/CMakeLists.txt b/src/vnet/CMakeLists.txt index 32255401654..516a5fa8108 100644 --- a/src/vnet/CMakeLists.txt +++ b/src/vnet/CMakeLists.txt @@ -995,6 +995,7 @@ list(APPEND VNET_API_FILES # tap interface (with virtio backend) ############################################################################## +if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") list(APPEND VNET_SOURCES devices/tap/cli.c devices/tap/tap.c @@ -1008,6 +1009,7 @@ list(APPEND VNET_HEADERS list(APPEND VNET_API_FILES devices/tap/tapv2.api ) +endif() ############################################################################## # tap interface (with virtio backend) -- cgit 1.2.3-korg